Skip to content

Commit

Permalink
Change deprecated avcodec_close -> avcodec_free_context
Browse files Browse the repository at this point in the history
  • Loading branch information
fenuks committed Nov 9, 2024
1 parent 45bac9e commit 9633697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replaygain/ffmpeginput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9633697

Please sign in to comment.