mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-02 03:32:17 +00:00
Merge pull request #8330 from yoshisuga/master
[iOS]: prevent crashing (EXC_BAD_ACCESS) when releasing FFMPEG contex…
This commit is contained in:
commit
c97c3e3157
@ -373,9 +373,9 @@ struct Atrac {
|
||||
avcodec_free_context(&pCodecCtx);
|
||||
#else
|
||||
// Future versions may add other things to free, but avcodec_free_context didn't exist yet here.
|
||||
avcodec_close(pCodecCtx);
|
||||
av_freep(&pCodecCtx->extradata);
|
||||
av_freep(&pCodecCtx->subtitle_header);
|
||||
avcodec_close(pCodecCtx);
|
||||
av_freep(&pCodecCtx);
|
||||
#endif
|
||||
av_free_packet(packet);
|
||||
|
Loading…
x
Reference in New Issue
Block a user