diff --git a/libavformat/utils.c b/libavformat/utils.c index bcdba8c5df..b167e96854 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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; }