mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02: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:
parent
2770e16d70
commit
6fd58eba1c
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user