From c7debe9f511f035ac1221f8dce230a4f34dadb3b Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Sat, 20 Oct 2012 08:49:17 +0000 Subject: try to fix compilation with old ffmpeg git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2928 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/config-darwin.inc | 1 + src/config.inc.in | 1 + src/ultrastardx.dpr | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/config-darwin.inc b/src/config-darwin.inc index 67a4c242..3d7aa374 100644 --- a/src/config-darwin.inc +++ b/src/config-darwin.inc @@ -17,6 +17,7 @@ {$DEFINE FFMPEG_DIR := 'ffmpeg-0.8'} {$ELSE} {$DEFINE FFMPEG_DIR := 'ffmpeg'} + {$DEFINE useOLD_FFMPEG} {$IFEND} {$ENDIF} {$IF Defined(IncludeConstants)} diff --git a/src/config.inc.in b/src/config.inc.in index 168a1ced..a901a5fa 100644 --- a/src/config.inc.in +++ b/src/config.inc.in @@ -17,6 +17,7 @@ {$DEFINE FFMPEG_DIR := 'ffmpeg-@FFMPEG_VERSION_MAJOR@.@FFMPEG_VERSION_MINOR@'} {$ELSE} {$DEFINE FFMPEG_DIR := 'ffmpeg'} + {$DEFINE useOLD_FFMPEG} {$IFEND} {$ENDIF} {$IF Defined(IncludeConstants)} diff --git a/src/ultrastardx.dpr b/src/ultrastardx.dpr index 9a77eea3..6636724f 100644 --- a/src/ultrastardx.dpr +++ b/src/ultrastardx.dpr @@ -91,10 +91,11 @@ uses avcodec in 'lib\' + FFMPEG_DIR + '\avcodec.pas', avformat in 'lib\' + FFMPEG_DIR + '\avformat.pas', avutil in 'lib\' + FFMPEG_DIR + '\avutil.pas', - mathematics in 'lib\' + FFMPEG_DIR + '\mathematics.pas', - opt in 'lib\' + FFMPEG_DIR + '\opt.pas', rational in 'lib\' + FFMPEG_DIR + '\rational.pas', avio in 'lib\' + FFMPEG_DIR + '\avio.pas', + {$IFDEF useOLD_FFMPEG} + mathematics in 'lib\' + FFMPEG_DIR + '\mathematics.pas', + {$ENDIF} {$IFDEF UseSWScale} swscale in 'lib\' + FFMPEG_DIR + '\swscale.pas', {$ENDIF} -- cgit v1.2.3