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,
|
width_num = CFNumberCreate(kCFAllocatorDefault,
|
||||||
kCFNumberSInt32Type,
|
kCFNumberSInt32Type,
|
||||||
&avctx->width);
|
&avctx->width);
|
||||||
if (!width_num) return AVERROR(ENOMEM);
|
if (!width_num) goto pbinfo_nomem;
|
||||||
|
|
||||||
CFDictionarySetValue(pixel_buffer_info,
|
CFDictionarySetValue(pixel_buffer_info,
|
||||||
kCVPixelBufferWidthKey,
|
kCVPixelBufferWidthKey,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user