From 09bcce93209367313744817790b4309e1071ee8e Mon Sep 17 00:00:00 2001 From: brian-ch Date: Thu, 26 Dec 2013 13:05:20 +0000 Subject: Fix in avformat defines and a small fix in UAudioDecoder_FFmpeg git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3060 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/media/UAudioDecoder_FFmpeg.pas | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/media/UAudioDecoder_FFmpeg.pas') diff --git a/src/media/UAudioDecoder_FFmpeg.pas b/src/media/UAudioDecoder_FFmpeg.pas index 4d02c260..75bfa75b 100644 --- a/src/media/UAudioDecoder_FFmpeg.pas +++ b/src/media/UAudioDecoder_FFmpeg.pas @@ -80,7 +80,11 @@ const const // TODO: The factor 3/2 might not be necessary as we do not need extra // space for synchronizing as in the tutorial. +{$IF FFMPEG_VERSION_INT >= 2000000} + AUDIO_BUFFER_SIZE = (192000 * 3) div 2; +{$ELSE} AUDIO_BUFFER_SIZE = (AVCODEC_MAX_AUDIO_FRAME_SIZE * 3) div 2; +{$ENDIF} type TFFmpegDecodeStream = class(TAudioDecodeStream) -- cgit v1.2.3