avcodec/videotoolboxenc: use goto end for memory cleanup

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
pull/370/head
Limin Wang 4 years ago
parent f25871d790
commit 871fee82e1
  1. 2
      libavcodec/videotoolboxenc.c

@ -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…
Cancel
Save