mirror of https://github.com/mgba-emu/mgba.git
FFmpeg: Fix crash when closing video encoder
This commit is contained in:
parent
588b18bdf9
commit
85962b632d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue