From 047a9ee8357a0e174dd089669c28e3d0cdee9570 Mon Sep 17 00:00:00 2001 From: aneejit1 Date: Fri, 20 May 2022 17:40:30 +0000 Subject: Fix build problem for older ffmpeg versions Fix a build failure for older ffmpeg versions. avcodec_decode_audio4 was deprecated in libavcodec 57.106.100, not 57.12.100, so the version has been corrected. Signed-off-by: aneejit1 (cherry picked from commit 456c383bad19a53e20e88a4a942427390f8ea552) --- akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp b/akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp index 25d9297..dd772ce 100644 --- a/akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp +++ b/akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp @@ -378,7 +378,7 @@ retry: } int decoded; -#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 12, 100) +#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 106, 100) int len = avcodec_receive_frame(d->audioStream_ctx, decodeFrame); if (len == 0) { decoded = 1; -- cgit v1.2.1