From adcdf0bc6057a99989a28bb3d1ba65e8b66eff3d Mon Sep 17 00:00:00 2001 From: Rick Kern Date: Mon, 28 Sep 2020 21:47:29 -0400 Subject: [PATCH] libavcodec/videotoolboxenc: Fix crash when frame received after error Signed-off-by: Rick Kern --- libavcodec/videotoolboxenc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index ec445de7c2..400401550a 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -573,7 +573,6 @@ static void vtenc_output_callback( ExtraSEI *sei = sourceFrameCtx; if (vtctx->async_error) { - if(sample_buffer) CFRelease(sample_buffer); return; }