aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib/ffmpeg/avcodec.pas
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Game/Code/lib/ffmpeg/avcodec.pas19
1 files changed, 12 insertions, 7 deletions
diff --git a/Game/Code/lib/ffmpeg/avcodec.pas b/Game/Code/lib/ffmpeg/avcodec.pas
index bcfe9809..4182b979 100644
--- a/Game/Code/lib/ffmpeg/avcodec.pas
+++ b/Game/Code/lib/ffmpeg/avcodec.pas
@@ -23,10 +23,11 @@ in the source codes *)
unit avcodec;
{$IFDEF FPC}
- {$IFNDEF win32}
- {$LINKLIB libavutil}
- {$LINKLIB libavcodec}
+ {$IFDEF LINUX}
+ {$LINKLIB libavutil}
+ {$LINKLIB libavcodec}
{$ENDIF}
+
{$MODE DELPHI } (* CAT *)
{$PACKENUM 4} (* every enum type variables uses 4 bytes, CAT *)
{$PACKRECORDS C} (* GCC compatible, Record Packing, CAT *)
@@ -38,11 +39,15 @@ uses
avutil, rational, opt; // CAT
const
-{$IFDEF win32}
+
+{$IFDEF MSWINDOWS}
av__format = 'avformat-50.dll';
-{$ELSE}
- av__format = 'libavformat.so'; // .0d
-// av__format = 'libavformat.51';
+{$ENDIF}
+{$IFDEF LINUX}
+ av__format = 'libavformat.so';
+{$ENDIF}
+{$IFDEF DARWIN}
+ av__format = 'libavformat.dylib';
{$ENDIF}