summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraneejit1 <aneejit1@gmail.com>2022-05-20 17:40:30 +0000
committerSlávek Banko <slavek.banko@axis.cz>2022-05-22 11:30:04 +0200
commit047a9ee8357a0e174dd089669c28e3d0cdee9570 (patch)
tree8524c503f410c76b7f5e1b9857b5cadbc347b8c4
parent66184944125bbd08b083166025923526973f67bf (diff)
downloadakode-047a9ee8357a0e174dd089669c28e3d0cdee9570.tar.gz
akode-047a9ee8357a0e174dd089669c28e3d0cdee9570.zip
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 <aneejit1@gmail.com> (cherry picked from commit 456c383bad19a53e20e88a4a942427390f8ea552)
-rw-r--r--akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
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;