You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avcodec/videotoolboxenc: use goto end for memory cleanup
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user