diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2024-12-21 12:37:15 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2024-12-21 12:37:15 +0100 |
commit | d6606fdd3b8d09aa7254fe2408ca573864ccd909 (patch) | |
tree | bbbeaf43822de682bbd8d572b73d274104b8388b | |
parent | 41ac06c8585dc535c4b1737b4c2943bb3fe7beb0 (diff) | |
download | pianobar-d6606fdd3b8d09aa7254fe2408ca573864ccd909.tar.gz pianobar-d6606fdd3b8d09aa7254fe2408ca573864ccd909.tar.bz2 pianobar-d6606fdd3b8d09aa7254fe2408ca573864ccd909.zip |
player: Replace deprecated function avcodec_close.
-rw-r--r-- | src/player.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |