diff options
author | aneejit1 <aneejit1@gmail.com> | 2022-05-20 17:40:30 +0000 |
---|---|---|
committer | aneejit1 <aneejit1@gmail.com> | 2022-05-20 17:43:21 +0000 |
commit | 456c383bad19a53e20e88a4a942427390f8ea552 (patch) | |
tree | 284aef52b779684155d49a96e1c3cc123b061095 | |
parent | 9e2710c9d865c68bf98780d63db595a8ad624e48 (diff) | |
download | akode-456c383bad19a53e20e88a4a942427390f8ea552.tar.gz akode-456c383bad19a53e20e88a4a942427390f8ea552.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>
-rw-r--r-- | akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp | 2 |
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; |