From 7a0975b9bf286de05b63c24dc310bee1f244b9c5 Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Thu, 26 Aug 2010 00:49:53 +0000 Subject: another try to fix compilation on linux. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2626 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/lib/ffmpeg/avio.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/ffmpeg/avio.pas b/src/lib/ffmpeg/avio.pas index ecba6323..adb59a44 100644 --- a/src/lib/ffmpeg/avio.pas +++ b/src/lib/ffmpeg/avio.pas @@ -427,12 +427,17 @@ function register_protocol(protocol: PURLProtocol): cint; *) function av_register_protocol(protocol: PURLProtocol): cint; cdecl; external av__format name 'register_protocol'; +{$ELSE} +{$IF LIBAVFORMAT_VERSION < 52078003} // < 52.78.3 +function av_register_protocol(protocol: PURLProtocol): cint; + cdecl; external av__format; {$ELSE} {$IFDEF FF_API_REGISTER_PROTOCOL} function av_register_protocol(protocol: PURLProtocol): cint; cdecl; external av__format; {$ENDIF} {$IFEND} +{$IFEND} {$IF LIBAVFORMAT_VERSION >= 52069000} // 52.69.0 function av_register_protocol2(protocol: PURLProtocol; size: cint): cint; cdecl; external av__format; -- cgit v1.2.3