Commit cbf767a8 authored by Luca Barbato's avatar Luca Barbato

avf: has_duration does not check the global one

Some container formats report a global duration, but not a per stream
one.
parent b089ca87
......@@ -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;
}
......
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