FFmpeg: Fix crash when closing video encoder

This commit is contained in:
Vicki Pfau 2021-12-18 18:26:54 -08:00
parent 588b18bdf9
commit 85962b632d
1 changed files with 0 additions and 1 deletions

View File

@ -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