Skip to content

Commit 20d5c55

Browse files
authored
Fix build with ffmpeg 8
1 parent 896476a commit 20d5c55

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cores/libretro-ffmpeg/ffmpeg_core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,16 +2089,16 @@ void CORE_PREFIX(retro_unload_game)(void)
20892089
for (i = 0; i < MAX_STREAMS; i++)
20902090
{
20912091
if (sctx[i])
2092-
avcodec_close(sctx[i]);
2092+
avcodec_free_context(&sctx[i]);
20932093
if (actx[i])
2094-
avcodec_close(actx[i]);
2094+
avcodec_free_context(&actx[i]);
20952095
sctx[i] = NULL;
20962096
actx[i] = NULL;
20972097
}
20982098

20992099
if (vctx)
21002100
{
2101-
avcodec_close(vctx);
2101+
(avcodec_free_context&vctx);
21022102
vctx = NULL;
21032103
}
21042104

0 commit comments

Comments
 (0)