mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Merge pull request #19663 from mshabunin:fix-ffmpeg-1x
This commit is contained in:
commit
325bdf952c
@ -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…
Reference in New Issue
Block a user