We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 896476a commit 20d5c55Copy full SHA for 20d5c55
1 file changed
cores/libretro-ffmpeg/ffmpeg_core.c
@@ -2089,16 +2089,16 @@ void CORE_PREFIX(retro_unload_game)(void)
2089
for (i = 0; i < MAX_STREAMS; i++)
2090
{
2091
if (sctx[i])
2092
- avcodec_close(sctx[i]);
+ avcodec_free_context(&sctx[i]);
2093
if (actx[i])
2094
- avcodec_close(actx[i]);
+ avcodec_free_context(&actx[i]);
2095
sctx[i] = NULL;
2096
actx[i] = NULL;
2097
}
2098
2099
if (vctx)
2100
2101
- avcodec_close(vctx);
+ (avcodec_free_context&vctx);
2102
vctx = NULL;
2103
2104
0 commit comments