diff --git a/modules/videoio/src/cap_ffmpeg_impl.hpp b/modules/videoio/src/cap_ffmpeg_impl.hpp index 0546fbdfbe..1a4aa36d22 100644 --- a/modules/videoio/src/cap_ffmpeg_impl.hpp +++ b/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