Commit f7595fb3 authored by Mashiat Sarker Shakkhar's avatar Mashiat Sarker Shakkhar Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6fd0b55a
......@@ -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 },
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment