aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-01-06 16:47:18 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-02-22 23:56:00 +0000
commitc47cdf837c1b52681a84f434443e1f993757a5e9 (patch)
tree16f4ed3a70b89e7c7a45423595e78fca82ebf6d5
parent91ef250713d04d675a16e5b030d7226baafe3f82 (diff)
downloadffmpeg-c47cdf837c1b52681a84f434443e1f993757a5e9.tar.gz
img2dec: correctly use the parsed value from -start_number
Previously the image sequence was always starting from the minimum number rather than the requested one. CC: libav-stable@libav.org
-rw-r--r--libavformat/img2dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 9acb6f6927..9307808b17 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -194,7 +194,7 @@ static int img_read_header(AVFormatContext *s1)
return AVERROR(ENOENT);
s->img_first = first_index;
s->img_last = last_index;
- s->img_number = first_index;
+ s->img_number = s->start_number != 1 ? s->start_number : first_index;
/* compute duration */
st->start_time = 0;
st->duration = last_index - first_index + 1;