From 7af7b45c3802d3d75981057cfda1e1764e96c4da Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 22 Aug 2013 10:09:11 +0200 Subject: lavf/image2: extend start_number range to accept zero Address trac ticket #2884. --- libavformat/img2enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/img2enc.c') diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c index 7b10623570..11223fba82 100644 --- a/libavformat/img2enc.c +++ b/libavformat/img2enc.c @@ -142,7 +142,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) static const AVOption muxoptions[] = { { "updatefirst", "continuously overwrite one file", OFFSET(update), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, ENC }, { "update", "continuously overwrite one file", OFFSET(update), 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 }, + { "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_INT, { .i64 = 0 }, 0, 1, ENC }, { NULL }, }; -- cgit v1.2.3