mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avcodec/videotoolboxenc: use goto end for memory cleanup
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
f25871d790
commit
871fee82e1
@ -876,7 +876,7 @@ static int create_cv_pixel_buffer_info(AVCodecContext* avctx,
|
||||
width_num = CFNumberCreate(kCFAllocatorDefault,
|
||||
kCFNumberSInt32Type,
|
||||
&avctx->width);
|
||||
if (!width_num) return AVERROR(ENOMEM);
|
||||
if (!width_num) goto pbinfo_nomem;
|
||||
|
||||
CFDictionarySetValue(pixel_buffer_info,
|
||||
kCVPixelBufferWidthKey,
|
||||
|
Loading…
Reference in New Issue
Block a user