[FFmpeg-cvslog] lavf/img2enc: extend current options documentation

Stefano Sabatini git at videolan.org
Fri Jan 25 00:07:59 CET 2013


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Jan 24 16:37:49 2013 +0100| [1ec3324f00e78a057206a475ab7920146bd918e5] | committer: Stefano Sabatini

lavf/img2enc: extend current options documentation

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

 doc/muxers.texi       |    9 +++++++--
 libavformat/img2enc.c |    4 ++--
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/doc/muxers.texi b/doc/muxers.texi
index b89da94..965a4bb 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -241,8 +241,13 @@ ffmpeg -i in.avi -f image2 -frames:v 1 img.jpeg
 @end example
 
 @table @option
- at item -start_number @var{number}
-Start the sequence from @var{number}.
+ at item start_number @var{number}
+Start the sequence from @var{number}. Default value is 1. Must be a
+positive number.
+
+ at item updatefirst 1|0
+If set to 1, update the first written image file again and
+again. Default value is 0.
 @end table
 
 The image muxer supports the .Y.U.V image file format. This format is
diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index 0e362f8..67b5819 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -128,8 +128,8 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
 #define OFFSET(x) offsetof(VideoMuxData, x)
 #define ENC AV_OPT_FLAG_ENCODING_PARAM
 static const AVOption muxoptions[] = {
-    { "updatefirst",  "",                            OFFSET(updatefirst), AV_OPT_TYPE_INT, { .i64 = 0 }, 0,       1, ENC },
-    { "start_number", "first number in the sequence", OFFSET(img_number), AV_OPT_TYPE_INT, { .i64 = 1 }, 1, INT_MAX, ENC },
+    { "updatefirst",  "update the first image file",      OFFSET(updatefirst), AV_OPT_TYPE_INT, { .i64 = 0 }, 0,       1, ENC },
+    { "start_number", "set first number in the sequence", OFFSET(img_number), AV_OPT_TYPE_INT,  { .i64 = 1 }, 1, INT_MAX, ENC },
     { NULL },
 };
 



More information about the ffmpeg-cvslog mailing list