diff options
author | Marton Balint <cus@passwd.hu> | 2016-02-11 02:01:29 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2016-02-14 01:34:16 +0100 |
commit | 35890aaa653a249e3f8253f11b85ed29c408259d (patch) | |
tree | e7adee20e8cdc53790e766f5ba85697feeaf18b5 /libavformat/img2enc.c | |
parent | 0250fc2146b36ace8b8db904b884f70c9393b105 (diff) | |
download | ffmpeg-35890aaa653a249e3f8253f11b85ed29c408259d.tar.gz |
avformat/img2enc: disable atomic file creation by default
Currently it is broken when explicitly using the file protocol, it uses an
insecure temporary file name, and in commit b4431c80 disabling the option by
default was already considered. Also it is not very consistent to have such an
option for one particular muxer.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/img2enc.c')
-rw-r--r-- | libavformat/img2enc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c index 280d598047..db235fb195 100644 --- a/libavformat/img2enc.c +++ b/libavformat/img2enc.c @@ -73,9 +73,6 @@ static int write_header(AVFormatContext *s) && desc->nb_components >= 3; } - img->use_rename = img->use_rename < 0 ? proto && !strcmp(proto, "file") - : img->use_rename; - return 0; } @@ -208,7 +205,7 @@ static const AVOption muxoptions[] = { { "update", "continuously overwrite one file", OFFSET(update), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, ENC }, { "start_number", "set first number in the sequence", OFFSET(img_number), AV_OPT_TYPE_INT, { .i64 = 1 }, 0, INT_MAX, ENC }, { "strftime", "use strftime for filename", OFFSET(use_strftime), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, ENC }, - { "atomic_writing", "write files atomically (using temporary files and renames)", OFFSET(use_rename), AV_OPT_TYPE_BOOL, { .i64 = -1 }, -1, 1, ENC }, + { "atomic_writing", "write files atomically (using temporary files and renames)", OFFSET(use_rename), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, ENC }, { NULL }, }; |