mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
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
This commit is contained in:
parent
51da7d0274
commit
456ffec35d
@ -194,7 +194,7 @@ static int img_read_header(AVFormatContext *s1)
|
|||||||
return AVERROR(ENOENT);
|
return AVERROR(ENOENT);
|
||||||
s->img_first = first_index;
|
s->img_first = first_index;
|
||||||
s->img_last = last_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 */
|
/* compute duration */
|
||||||
st->start_time = 0;
|
st->start_time = 0;
|
||||||
st->duration = last_index - first_index + 1;
|
st->duration = last_index - first_index + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user