mirror of https://github.com/mgba-emu/mgba.git
FFmpeg: Fix crash when encoding audio with some containers
This commit is contained in:
parent
354f898a03
commit
b5e94b0abb
1
CHANGES
1
CHANGES
|
@ -18,6 +18,7 @@ Emulation fixes:
|
|||
- GBA Memory: Fix misaligned 32-bit I/O loads (fixes mgba.io/i/2307)
|
||||
Other fixes:
|
||||
- Core: Don't attempt to restore rewind diffs past start of rewind
|
||||
- FFmpeg: Fix crash when encoding audio with some containers
|
||||
Misc:
|
||||
- Core: Suspend runloop when a core crashes
|
||||
- mGUI: Add margin to right-aligned menu text (fixes mgba.io/i/871)
|
||||
|
|
|
@ -737,7 +737,7 @@ bool _ffmpegWriteAudioFrame(struct FFmpegEncoder* encoder, struct AVFrame* audio
|
|||
|
||||
#ifdef FFMPEG_USE_PACKET_UNREF
|
||||
av_packet_move_ref(packet, tempPacket);
|
||||
av_packet_free(&packet);
|
||||
av_packet_free(&tempPacket);
|
||||
#else
|
||||
av_free_packet(packet);
|
||||
av_freep(&packet);
|
||||
|
|
Loading…
Reference in New Issue