Don't rely on nb_frames to be correct

This commit is contained in:
Dietmar Schabus 2024-07-02 06:45:05 +02:00
parent 39a7b3d186
commit fd5efabdd9

View File

@ -1485,10 +1485,6 @@ bool CvCapture_FFMPEG::grabFrame()
if( !ic || !video_st || (!rawMode && !context) ) return false;
if( ic->streams[video_stream]->nb_frames > 0 &&
frame_number > ic->streams[video_stream]->nb_frames )
return false;
picture_pts = AV_NOPTS_VALUE_;
#if USE_AV_INTERRUPT_CALLBACK