diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-01-06 16:47:18 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-02-22 23:51:15 +0000 |
commit | 4cd54b2f976738682cdf8a38a1719b8bba1a018c (patch) | |
tree | 02edb8e9c4e88fca46af0308208e4f4f444ca688 | |
parent | 07db7a0dd8239e255c08800162eb45b82c2c49fe (diff) | |
download | ffmpeg-4cd54b2f976738682cdf8a38a1719b8bba1a018c.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index f7f0a11e6a..b73554e096 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; |