diff options
-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) { |