Merge pull request #19663 from mshabunin:fix-ffmpeg-1x

pull/19664/head
Alexander Alekhin 4 years ago
commit 325bdf952c
  1. 5
      modules/videoio/src/cap_ffmpeg_impl.hpp

@ -1469,9 +1469,12 @@ bool CvCapture_FFMPEG::retrieveFrame(int, unsigned char** data, int* step, int*
*height = frame.height;
*cn = frame.cn;
if (sw_picture != picture) {
#if USE_AV_HW_CODECS
if (sw_picture != picture)
{
av_frame_unref(sw_picture);
}
#endif
return true;
}

Loading…
Cancel
Save