mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avf: fix faulty check in has_duration
An invalid duration is AV_NOPTS_VALUE not 0.
This commit is contained in:
parent
394dbde548
commit
8b97ae6484
@ -1823,7 +1823,7 @@ static int has_duration(AVFormatContext *ic)
|
|||||||
if (st->duration != AV_NOPTS_VALUE)
|
if (st->duration != AV_NOPTS_VALUE)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (ic->duration)
|
if (ic->duration != AV_NOPTS_VALUE)
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user