Browse Source

libavcodec/videotoolboxenc: Fix crash when frame received after error

Signed-off-by: Rick Kern <kernrj@gmail.com>
Rick Kern 4 years ago
parent
commit
adcdf0bc60
1 changed files with 0 additions and 1 deletions
  1. 0 1
      libavcodec/videotoolboxenc.c

+ 0 - 1
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;
     }