From d6606fdd3b8d09aa7254fe2408ca573864ccd909 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 21 Dec 2024 12:37:15 +0100 Subject: player: Replace deprecated function avcodec_close. --- src/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index 753d490..bded009 100644 --- a/src/player.c +++ b/src/player.c @@ -514,7 +514,7 @@ static void finish (player_t * const player) { player->fgraph = NULL; } if (player->cctx != NULL) { - avcodec_close (player->cctx); + avcodec_free_context (&player->cctx); player->cctx = NULL; } if (player->fctx != NULL) { -- cgit v1.2.3