mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-11-06 21:04:45 +03:00
lavc/videotoolbox: CFRelease() session
"When you are done with a decompression session you created, call VTDecompressionSessionInvalidate to tear it down and then CFRelease to release your object reference."
This commit is contained in:
@@ -628,8 +628,10 @@ static void videotoolbox_default_free(AVCodecContext *avctx)
|
||||
if (videotoolbox->cm_fmt_desc)
|
||||
CFRelease(videotoolbox->cm_fmt_desc);
|
||||
|
||||
if (videotoolbox->session)
|
||||
if (videotoolbox->session) {
|
||||
VTDecompressionSessionInvalidate(videotoolbox->session);
|
||||
CFRelease(videotoolbox->session);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user