diff options
Diffstat (limited to '')
-rw-r--r-- | src/media/UAudioDecoder_FFmpeg.pas | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/media/UAudioDecoder_FFmpeg.pas b/src/media/UAudioDecoder_FFmpeg.pas index d5295135..a6749173 100644 --- a/src/media/UAudioDecoder_FFmpeg.pas +++ b/src/media/UAudioDecoder_FFmpeg.pas @@ -915,7 +915,10 @@ begin begin DataSize := BufferSize; - {$IF LIBAVCODEC_VERSION >= 51030000} // 51.30.0 + {$IF LIBAVCODEC_VERSION >= 52122000} // 52.122.0 + PaketDecodedSize := avcodec_decode_audio3(fCodecCtx, PSmallint(Buffer), + DataSize, @fAudioPaket); + {$ELSEIF LIBAVCODEC_VERSION >= 51030000} // 51.30.0 PaketDecodedSize := avcodec_decode_audio2(fCodecCtx, PSmallint(Buffer), DataSize, fAudioPaketData, fAudioPaketSize); {$ELSE} |