From 85962b632dc13c59370ab5cb1612b3c59cd8c750 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 18 Dec 2021 18:26:54 -0800 Subject: [PATCH] FFmpeg: Fix crash when closing video encoder --- src/feature/ffmpeg/ffmpeg-encoder.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/feature/ffmpeg/ffmpeg-encoder.c b/src/feature/ffmpeg/ffmpeg-encoder.c index c4f1607a1..3b4182c03 100644 --- a/src/feature/ffmpeg/ffmpeg-encoder.c +++ b/src/feature/ffmpeg/ffmpeg-encoder.c @@ -618,7 +618,6 @@ void FFmpegEncoderClose(struct FFmpegEncoder* encoder) { } if (encoder->videoFrame) { - av_freep(encoder->videoFrame->data); #if LIBAVCODEC_VERSION_MAJOR >= 55 av_frame_free(&encoder->videoFrame); #else