mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
img2dec: dont set start_time/duration to invalid values
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
70fbfd75c3
commit
a753776ff5
@ -301,8 +301,10 @@ static int img_read_header(AVFormatContext *s1)
|
|||||||
s->img_last = last_index;
|
s->img_last = last_index;
|
||||||
s->img_number = first_index;
|
s->img_number = first_index;
|
||||||
/* compute duration */
|
/* compute duration */
|
||||||
st->start_time = 0;
|
if (!s->ts_from_file) {
|
||||||
st->duration = last_index - first_index + 1;
|
st->start_time = 0;
|
||||||
|
st->duration = last_index - first_index + 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s1->video_codec_id) {
|
if (s1->video_codec_id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user