Browse Source

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
tags/n2.4.8
Vittorio Giovara 11 years ago
parent
commit
4cd54b2f97
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/img2dec.c

+ 1
- 1
libavformat/img2dec.c View File

@@ -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;


Loading…
Cancel
Save