aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib/ffmpeg/avcodec.pas
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-07-01 20:24:23 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-07-01 20:24:23 +0000
commit0d738cf354d2793a9fc86fa595819077672d3375 (patch)
tree2961ac680592901960eb5f4eefc7478868b7e55f /Game/Code/lib/ffmpeg/avcodec.pas
parentc690b6e14f1b7dc2e6f0c84831c4c274582ed11f (diff)
downloadusdx-0d738cf354d2793a9fc86fa595819077672d3375.tar.gz
usdx-0d738cf354d2793a9fc86fa595819077672d3375.tar.xz
usdx-0d738cf354d2793a9fc86fa595819077672d3375.zip
check for outdated libs and some minor type corrections
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1153 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/lib/ffmpeg/avcodec.pas')
-rw-r--r--Game/Code/lib/ffmpeg/avcodec.pas25
1 files changed, 19 insertions, 6 deletions
diff --git a/Game/Code/lib/ffmpeg/avcodec.pas b/Game/Code/lib/ffmpeg/avcodec.pas
index 42bc4d9e..95f1b1d2 100644
--- a/Game/Code/lib/ffmpeg/avcodec.pas
+++ b/Game/Code/lib/ffmpeg/avcodec.pas
@@ -23,7 +23,7 @@
(*
* Conversion of libavcodec/avcodec.h
- * Min. version: 51.16.0
+ * Min. version: 51.16.0, revision 6577, Sat Oct 7 15:30:46 2006 UTC
* Max. version: 51.57.2, revision 13759, Thu Jun 12 21:50:13 2008 UTC
*)
@@ -61,6 +61,19 @@ const
(LIBAVCODEC_MAX_VERSION_MINOR * VERSION_MINOR) +
(LIBAVCODEC_MAX_VERSION_RELEASE * VERSION_RELEASE);
+ (* Min. supported version by this header *)
+ LIBAVCODEC_MIN_VERSION_MAJOR = 51;
+ LIBAVCODEC_MIN_VERSION_MINOR = 16;
+ LIBAVCODEC_MIN_VERSION_RELEASE = 0;
+ LIBAVCODEC_MIN_VERSION = (LIBAVCODEC_MIN_VERSION_MAJOR * VERSION_MAJOR) +
+ (LIBAVCODEC_MIN_VERSION_MINOR * VERSION_MINOR) +
+ (LIBAVCODEC_MIN_VERSION_RELEASE * VERSION_RELEASE);
+
+(* Check if linked versions are supported *)
+{$IF (LIBAVCODEC_VERSION < LIBAVCODEC_MIN_VERSION)}
+ {$MESSAGE Error 'Linked version of libavcodec is too old!'}
+{$IFEND}
+
(* Check if linked version is supported *)
{$IF (LIBAVCODEC_VERSION > LIBAVCODEC_MAX_VERSION)}
{$MESSAGE Warn 'Linked version of libavcodec may be unsupported!'}
@@ -69,7 +82,7 @@ const
const
AV_NOPTS_VALUE: int64 = $8000000000000000;
AV_TIME_BASE = 1000000;
- AV_TIME_BASE_Q : TAVRational = (num:1; den:AV_TIME_BASE); (* added by CAT *)
+ AV_TIME_BASE_Q : TAVRational = (num:1; den:AV_TIME_BASE);
(**
* Identifies the syntax and semantics of the bitstream.
@@ -1810,14 +1823,14 @@ type
* - encoding: Set by user, can be NULL.
* - decoding: Set by libavcodec.
*)
- intra_matrix: Pword;
+ intra_matrix: PWord;
(**
* custom inter quantization matrix
* - encoding: Set by user, can be NULL.
* - decoding: Set by libavcodec.
*)
- inter_matrix: Pword;
+ inter_matrix: PWord;
(**
* fourcc from the AVI stream header (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
@@ -2806,7 +2819,7 @@ function avcodec_open (avctx: PAVCodecContext; codec: PAVCodec): integer;
(**
* @deprecated Use avcodec_decode_audio2() instead.
*)
-function avcodec_decode_audio (avctx: PAVCodecContext; samples: Pword;
+function avcodec_decode_audio (avctx: PAVCodecContext; samples: PSmallint;
var frame_size_ptr: integer;
buf: {const} pchar; buf_size: integer): integer;
cdecl; external av__codec;
@@ -2923,7 +2936,7 @@ function avcodec_parse_frame (avctx: PAVCodecContext; pdata: PPointer;
* of bytes used to encode the data read from the input buffer.
*)
function avcodec_encode_audio (avctx: PAVCodecContext; buf: PByte;
- buf_size: integer; samples: {const} PWord): integer;
+ buf_size: integer; samples: {const} PSmallint): integer;
cdecl; external av__codec;
(**