Commit 8b97ae64 authored by Luca Barbato's avatar Luca Barbato

avf: fix faulty check in has_duration

An invalid duration is AV_NOPTS_VALUE not 0.
parent 394dbde5
......@@ -1823,7 +1823,7 @@ static int has_duration(AVFormatContext *ic)
if (st->duration != AV_NOPTS_VALUE)
return 1;
}
if (ic->duration)
if (ic->duration != AV_NOPTS_VALUE)
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