--- a/hedgewars/uVideoRec.pas Wed Mar 06 11:18:54 2013 +0100
+++ b/hedgewars/uVideoRec.pas Wed Mar 06 12:12:02 2013 +0100
@@ -28,7 +28,9 @@
{$ELSE}
{$IFNDEF WIN32}
- {$LINKLIB ../bin/libavwrapper.a}
+ {$linklib avcodec}
+ {$linklib avformat}
+ {$linklib avutil}
{$ENDIF}
interface
@@ -48,17 +50,17 @@
procedure freeModule;
implementation
-
uses uVariables, uUtils, GLunit, SDLh, SysUtils, uIO, uMisc, uTypes;
type TAddFileLogRaw = procedure (s: pchar); cdecl;
+const AvwrapperLibName = 'libavwrapper';
procedure AVWrapper_Init(
AddLog: TAddFileLogRaw;
filename, desc, soundFile, format, vcodec, acodec: PChar;
- width, height, framerateNum, framerateDen, vquality: LongInt); cdecl; external {$IFDEF WIN32}'libavwrapper.dll'{$ENDIF};
-procedure AVWrapper_Close; cdecl; external {$IFDEF WIN32}'libavwrapper.dll'{$ENDIF};
-procedure AVWrapper_WriteFrame( pY, pCb, pCr: PByte ); cdecl; external {$IFDEF WIN32}'libavwrapper.dll'{$ENDIF};
+ width, height, framerateNum, framerateDen, vquality: LongInt); cdecl; external AvwrapperLibName;
+procedure AVWrapper_Close; cdecl; external AvwrapperLibName;
+procedure AVWrapper_WriteFrame( pY, pCb, pCr: PByte ); cdecl; external AvwrapperLibName;
type TFrame = record
realTicks: LongWord;