mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-07 17:51:52 +08:00
avf: fix faulty check in has_duration
An invalid duration is AV_NOPTS_VALUE not 0.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user