aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Game/Code/lib/ffmpeg/avio.pas1
-rw-r--r--Game/Code/lib/ffmpeg/avutil.pas7
2 files changed, 8 insertions, 0 deletions
diff --git a/Game/Code/lib/ffmpeg/avio.pas b/Game/Code/lib/ffmpeg/avio.pas
index a4d7af12..f3a4f05f 100644
--- a/Game/Code/lib/ffmpeg/avio.pas
+++ b/Game/Code/lib/ffmpeg/avio.pas
@@ -40,6 +40,7 @@ unit avio;
interface
uses
+ avutil, // for uint64
UConfig;
(* output byte stream handling *)
diff --git a/Game/Code/lib/ffmpeg/avutil.pas b/Game/Code/lib/ffmpeg/avutil.pas
index 906d9041..c27dd735 100644
--- a/Game/Code/lib/ffmpeg/avutil.pas
+++ b/Game/Code/lib/ffmpeg/avutil.pas
@@ -61,6 +61,13 @@ const
{$MESSAGE Warn 'Linked version of libavutil may be unsupported!'}
{$IFEND}
+{$IFDEF FPC}
+ // check for version of FPC < 2.2.0
+ {$IF (FPC_VERSION < 2) or ((FPC_VERSION = 2) and (FPC_RELEASE < 2))}
+ type uint64 = QWord;
+ {$IFEND}
+{$ENDIF}
+
type
(**
* Pixel format. Notes: