[FFmpeg-cvslog] lavf/img2enc: remove redundant option 'updatefirst'

Gyan Doshi git at videolan.org
Thu Nov 2 00:44:51 EET 2017


ffmpeg | branch: master | Gyan Doshi <gyandoshi at gmail.com> | Sun Oct 29 13:41:18 2017 +0530| [3524c92950832705210e50eeafad002fe2d58be5] | committer: Lou Logan

lavf/img2enc: remove redundant option 'updatefirst'

'updatefirst' is an undocumented option redundant to older option 'update'. Since it doesn't serve as a shorthand, this patch removes it.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3524c92950832705210e50eeafad002fe2d58be5
---

 libavformat/img2enc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index d793807b33..7d64659340 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -104,7 +104,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
                                           AV_FRAME_FILENAME_FLAGS_MULTIPLE) < 0 &&
                    img->img_number > 1) {
             av_log(s, AV_LOG_ERROR,
-                   "Could not get frame filename number %d from pattern '%s' (either set updatefirst or use a pattern like %%03d within the filename pattern)\n",
+                   "Could not get frame filename number %d from pattern '%s' (either set update or use a pattern like %%03d within the filename pattern)\n",
                    img->img_number, img->path);
             return AVERROR(EINVAL);
         }
@@ -203,7 +203,6 @@ static int query_codec(enum AVCodecID id, int std_compliance)
 #define OFFSET(x) offsetof(VideoMuxData, x)
 #define ENC AV_OPT_FLAG_ENCODING_PARAM
 static const AVOption muxoptions[] = {
-    { "updatefirst",  "continuously overwrite one file", OFFSET(update),  AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0,       1, ENC },
     { "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 },



More information about the ffmpeg-cvslog mailing list