diff options
author | Mashiat Sarker Shakkhar <mashiat.sarker@gmail.com> | 2012-06-23 10:11:49 +0600 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-23 21:12:01 +0200 |
commit | f7595fb3b5d856747fc012b51b349fdd0a3672f8 (patch) | |
tree | 1b4c1d3f253e8466a5f14024e1e06dde06e14850 /libavformat/img2enc.c | |
parent | 6fd0b55ab2b3d42095f2eb40923609e10e8a53a5 (diff) | |
download | ffmpeg-f7595fb3b5d856747fc012b51b349fdd0a3672f8.tar.gz |
image2: Add "start_number" private option to the muxer
This adds the capability to start counting file number from an arbitrary
integer instead of always starting at 1.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/img2enc.c')
-rw-r--r-- | libavformat/img2enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c index 175b854b6a..5dc7e1230f 100644 --- a/libavformat/img2enc.c +++ b/libavformat/img2enc.c @@ -42,7 +42,6 @@ static int write_header(AVFormatContext *s) VideoMuxData *img = s->priv_data; const char *str; - img->img_number = 1; av_strlcpy(img->path, s->filename, sizeof(img->path)); /* find format */ @@ -137,6 +136,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) #define ENC AV_OPT_FLAG_ENCODING_PARAM static const AVOption muxoptions[] = { { "updatefirst", "", OFFSET(updatefirst), AV_OPT_TYPE_INT, {.dbl = 0}, 0, 1, ENC }, + { "start_number", "first number in the sequence", OFFSET(img_number), AV_OPT_TYPE_INT, {.dbl = 1}, 1, INT_MAX, ENC }, { NULL }, }; |