mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #25844 from dietmar:dont_rely_on_nb_frames
Don't rely on nb_frames to be correct
This commit is contained in:
commit
88b28ee2a0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user