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 456c383bad)
r14.0.x
aneejit1 2 years ago committed by Slávek Banko
parent 6618494412
commit 047a9ee835
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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;

Loading…
Cancel
Save