mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Merge pull request #21710 from alalek:fix_21696
This commit is contained in:
commit
fb768c420d
@ -1519,7 +1519,7 @@ bool CvCapture_FFMPEG::retrieveFrame(int flag, unsigned char** data, int* step,
|
||||
#if USE_AV_HW_CODECS
|
||||
if (sw_picture != picture)
|
||||
{
|
||||
av_frame_unref(sw_picture);
|
||||
av_frame_free(&sw_picture);
|
||||
}
|
||||
#endif
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user