1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avf: has_duration does not check the global one

Some container formats report a global duration, but not a per stream
one.
This commit is contained in:
Luca Barbato 2012-04-12 22:00:57 -07:00
parent b089ca871a
commit cbf767a87c

View File

@ -1823,6 +1823,8 @@ static int has_duration(AVFormatContext *ic)
if (st->duration != AV_NOPTS_VALUE)
return 1;
}
if (ic->duration)
return 1;
return 0;
}