mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-20 14:06:35 +00: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:
parent
b089ca871a
commit
cbf767a87c
@ -1823,6 +1823,8 @@ 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)
|
||||||
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user