diff options
author | jaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-09-13 11:39:57 +0000 |
---|---|---|
committer | jaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-09-13 11:39:57 +0000 |
commit | 5a778181e947cfb883f85d3239f6d1f1714dacc8 (patch) | |
tree | e9483aab9464d34d4d1171aa97504c6a283d54b0 /Game/Code/lib/ffmpeg/avcodec.pas | |
parent | f0bf8c49eadf2656bf91a4b24a6ce5106b887b0a (diff) | |
download | usdx-5a778181e947cfb883f85d3239f6d1f1714dacc8.tar.gz usdx-5a778181e947cfb883f85d3239f6d1f1714dacc8.tar.xz usdx-5a778181e947cfb883f85d3239f6d1f1714dacc8.zip |
changes to make 3rd party libraries compile / work
in lazarus.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@387 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/lib/ffmpeg/avcodec.pas')
-rw-r--r-- | Game/Code/lib/ffmpeg/avcodec.pas | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Game/Code/lib/ffmpeg/avcodec.pas b/Game/Code/lib/ffmpeg/avcodec.pas index 978b5fb6..ce08dcc9 100644 --- a/Game/Code/lib/ffmpeg/avcodec.pas +++ b/Game/Code/lib/ffmpeg/avcodec.pas @@ -576,7 +576,7 @@ type of AVIn/OutputFormat *)
item_name: function (): pchar; cdecl;
option: PAVOption;
- end; + end;
TAVCodecContext = record {720}
(*** Info on struct for av_log
@@ -1792,11 +1792,13 @@ procedure av_resample_close (c: PAVResampleContext); got_sub_ptr: pinteger;
const buf: pchar; buf_size: integer): integer;
cdecl; external av__codec;
+
+ {$IFNDEF FPC}
function avcodec_parse_frame (avctx: PAVCodecContext; pdata: PPointer;
data_size_ptr: pinteger;
buf: pchar; buf_size: integer): integer;
cdecl; external av__codec;
-
+ {$ENDIF}
function avcodec_encode_audio (avctx: PAVCodecContext; buf: PByte;
buf_size: integer; const samples: Pword): integer;
cdecl; external av__codec;
|