Merge pull request #25844 from dietmar:dont_rely_on_nb_frames

Don't rely on nb_frames to be correct
pull/22836/head
Alexander Smorkalov 4 months ago committed by GitHub
commit 88b28ee2a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      modules/videoio/src/cap_ffmpeg_impl.hpp

@ -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…
Cancel
Save