aboutsummaryrefslogtreecommitdiffstats
path: root/src/media
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/media/UAudioDecoder_FFmpeg.pas5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/media/UAudioDecoder_FFmpeg.pas b/src/media/UAudioDecoder_FFmpeg.pas
index 301dc744..113b6f30 100644
--- a/src/media/UAudioDecoder_FFmpeg.pas
+++ b/src/media/UAudioDecoder_FFmpeg.pas
@@ -376,7 +376,10 @@ begin
fCodecCtx^.debug := 0;
{$IF FFMPEG_VERSION_INT > 1001000}
- // set requested sample format
+ // request required sample format
+ // reference:
+ // http://stackoverflow.com/questions/16479662/ffmpeg-1-0-causing-audio-playback-issues
+ // without this avcodec_open2 returns AV_SAMPLE_FMT_S16P
fCodecCtx^.request_sample_fmt := AV_SAMPLE_FMT_S16;
{$IFEND}