From 963369795b4f903411c7b1392c5244ca975003b1 Mon Sep 17 00:00:00 2001 From: fenuks Date: Sat, 9 Nov 2024 23:39:54 +0100 Subject: [PATCH] Change deprecated avcodec_close -> avcodec_free_context --- replaygain/ffmpeginput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replaygain/ffmpeginput.cpp b/replaygain/ffmpeginput.cpp index e9717687c..8c81da665 100644 --- a/replaygain/ffmpeginput.cpp +++ b/replaygain/ffmpeginput.cpp @@ -253,7 +253,7 @@ FfmpegInput::~FfmpegInput() { if (handle) { mutex.lock(); - avcodec_close(handle->codecContext); + avcodec_free_context(&handle->codecContext); #if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 21, 0) avformat_close_input(&handle->formatContext); #else