mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
avcodec/videotoolbox: use early return in videotoolbox_default_free
Cosmetic change only. Signed-off-by: Aman Gupta <aman@tmm1.net>
This commit is contained in:
parent
230b91cdfd
commit
631296ff99
@ -849,8 +849,9 @@ static int videotoolbox_default_init(AVCodecContext *avctx)
|
||||
static void videotoolbox_default_free(AVCodecContext *avctx)
|
||||
{
|
||||
AVVideotoolboxContext *videotoolbox = videotoolbox_get_context(avctx);
|
||||
if (!videotoolbox)
|
||||
return;
|
||||
|
||||
if (videotoolbox) {
|
||||
if (videotoolbox->cm_fmt_desc)
|
||||
CFRelease(videotoolbox->cm_fmt_desc);
|
||||
|
||||
@ -859,7 +860,6 @@ static void videotoolbox_default_free(AVCodecContext *avctx)
|
||||
CFRelease(videotoolbox->session);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static int videotoolbox_uninit(AVCodecContext *avctx)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user