Browse Source

img2dec: dont set start_time/duration to invalid values

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
a753776ff5
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavformat/img2dec.c

+ 4
- 2
libavformat/img2dec.c View File

@@ -301,8 +301,10 @@ static int img_read_header(AVFormatContext *s1)
s->img_last = last_index;
s->img_number = first_index;
/* compute duration */
st->start_time = 0;
st->duration = last_index - first_index + 1;
if (!s->ts_from_file) {
st->start_time = 0;
st->duration = last_index - first_index + 1;
}
}

if (s1->video_codec_id) {


Loading…
Cancel
Save