aboutsummaryrefslogtreecommitdiffstats
path: root/src/media/UAudioDecoder_FFmpeg.pas
diff options
context:
space:
mode:
Diffstat (limited to 'src/media/UAudioDecoder_FFmpeg.pas')
-rw-r--r--src/media/UAudioDecoder_FFmpeg.pas5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/media/UAudioDecoder_FFmpeg.pas b/src/media/UAudioDecoder_FFmpeg.pas
index 0cdf9555..301dc744 100644
--- a/src/media/UAudioDecoder_FFmpeg.pas
+++ b/src/media/UAudioDecoder_FFmpeg.pas
@@ -374,6 +374,11 @@ begin
// set debug options
fCodecCtx^.debug_mv := 0;
fCodecCtx^.debug := 0;
+
+ {$IF FFMPEG_VERSION_INT > 1001000}
+ // set requested sample format
+ fCodecCtx^.request_sample_fmt := AV_SAMPLE_FMT_S16;
+ {$IFEND}
// detect bug-workarounds automatically
fCodecCtx^.workaround_bugs := FF_BUG_AUTODETECT;