mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
@@ -1208,9 +1208,20 @@ bool CvCapture_FFMPEG::grabFrame()
|
||||
#endif
|
||||
|
||||
int ret = av_read_frame(ic, &packet);
|
||||
if (ret == AVERROR(EAGAIN)) continue;
|
||||
|
||||
/* else if (ret < 0) break; */
|
||||
if (ret == AVERROR(EAGAIN))
|
||||
continue;
|
||||
|
||||
if (ret == AVERROR_EOF)
|
||||
{
|
||||
if (rawMode)
|
||||
break;
|
||||
|
||||
// flush cached frames from video decoder
|
||||
packet.data = NULL;
|
||||
packet.size = 0;
|
||||
packet.stream_index = video_stream;
|
||||
}
|
||||
|
||||
if( packet.stream_index != video_stream )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user