Commit a753776f authored by Michael Niedermayer's avatar Michael Niedermayer

img2dec: dont set start_time/duration to invalid values

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 70fbfd75
......@@ -301,9 +301,11 @@ static int img_read_header(AVFormatContext *s1)
s->img_last = last_index;
s->img_number = first_index;
/* compute duration */
if (!s->ts_from_file) {
st->start_time = 0;
st->duration = last_index - first_index + 1;
}
}
if (s1->video_codec_id) {
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment