aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib/ffmpeg/avio.pas
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-10-11 08:03:12 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-10-11 08:03:12 +0000
commit48676faa6c0da1eb77999512322896840ea13cb1 (patch)
tree34783f49bcbb5d159955d16e9648daa95a5b2d64 /Game/Code/lib/ffmpeg/avio.pas
parent2f80e3be339f528bd0c7ef54db8ff7cc641883e3 (diff)
downloadusdx-48676faa6c0da1eb77999512322896840ea13cb1.tar.gz
usdx-48676faa6c0da1eb77999512322896840ea13cb1.tar.xz
usdx-48676faa6c0da1eb77999512322896840ea13cb1.zip
major changes to FFMPEG Headers so they now support linux.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@500 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/lib/ffmpeg/avio.pas')
-rw-r--r--Game/Code/lib/ffmpeg/avio.pas24
1 files changed, 11 insertions, 13 deletions
diff --git a/Game/Code/lib/ffmpeg/avio.pas b/Game/Code/lib/ffmpeg/avio.pas
index 84622f0d..f1abea3e 100644
--- a/Game/Code/lib/ffmpeg/avio.pas
+++ b/Game/Code/lib/ffmpeg/avio.pas
@@ -16,21 +16,21 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*)
-unit avio;
-interface
+(* This is a part of Pascal porting of ffmpeg. Originally by Victor Zinetz for Delphi and Free Pascal on Windows.
+For Mac OS X, some modifications were made by The Creative CAT, denoted as CAT
+in the source codes *)
+
+unit avio;
+{$MODE DELPHI } (* CAT *)
+{$PACKENUM 4} (* every enum type variables uses 4 bytes, CAT *)
+{$PACKRECORDS C} (* GCC compatible, Record Packing, CAT *)
-{$IFDEF win32}
-uses
- windows;
-{$ENDIF}
+interface (* Widows unit is deleted by CAT *)
const
- {$IFDEF win32}
- av__format = 'avformat-50.dll';
- {$ELSE}
- av__format = 'libavformat.so'; // .0d
- {$ENDIF}
+(* version numbers are changed by The Creative CAT *)
+ av__format = 'libavformat.51';
URL_RDONLY = 0;
URL_WRONLY = 1;
@@ -230,14 +230,12 @@ type
procedure init_checksum (s: PByteIOContext; update_checksum: pointer; checksum: cardinal);
cdecl; external av__format;
- {$IFNDEF FPC}
function udp_set_remote_url(h: PURLContext; const uri: pchar): integer;
cdecl; external av__format;
function udp_get_local_port(h: PURLContext): integer;
cdecl; external av__format;
function udp_get_file_handle(h: PURLContext): integer;
cdecl; external av__format;
- {$ENDIF}
implementation