summaryrefslogtreecommitdiff
path: root/libavcodec/videotoolboxenc.c
diff options
context:
space:
mode:
authorRick Kern <kernrj@gmail.com>2020-09-28 21:47:29 -0400
committerRick Kern <kernrj@gmail.com>2020-09-28 21:48:23 -0400
commitadcdf0bc6057a99989a28bb3d1ba65e8b66eff3d (patch)
tree138f0afd39a50ebe98ff095860173ce21c608f8a /libavcodec/videotoolboxenc.c
parent9837f5a64322e89f825a99f14c1a0d27b17b183c (diff)
libavcodec/videotoolboxenc: Fix crash when frame received after error
Signed-off-by: Rick Kern <kernrj@gmail.com>
Diffstat (limited to 'libavcodec/videotoolboxenc.c')
-rw-r--r--libavcodec/videotoolboxenc.c1
1 files changed, 0 insertions, 1 deletions
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;
}