diff options
Diffstat (limited to 'src/lib/ffmpeg')
-rw-r--r-- | src/lib/ffmpeg/avformat.pas | 4 | ||||
-rw-r--r-- | src/lib/ffmpeg/avio.pas | 26 |
2 files changed, 27 insertions, 3 deletions
diff --git a/src/lib/ffmpeg/avformat.pas b/src/lib/ffmpeg/avformat.pas index c5ae2606..2f05ee4a 100644 --- a/src/lib/ffmpeg/avformat.pas +++ b/src/lib/ffmpeg/avformat.pas @@ -23,7 +23,7 @@ * * Conversion of libavformat/avformat.h * Min. version: 50.5.0 , revision 6577, Sat Oct 7 15:30:46 2006 UTC - * Max. version: 52.69.0, revision 23702, Tue Jul 20 21:30:00 2010 CET + * Max. version: 52.70.0, revision 23704, Tue Jul 20 21:30:00 2010 CET *) unit avformat; @@ -81,7 +81,7 @@ const *) (* Max. supported version by this header *) LIBAVFORMAT_MAX_VERSION_MAJOR = 52; - LIBAVFORMAT_MAX_VERSION_MINOR = 69; + LIBAVFORMAT_MAX_VERSION_MINOR = 70; LIBAVFORMAT_MAX_VERSION_RELEASE = 0; LIBAVFORMAT_MAX_VERSION = (LIBAVFORMAT_MAX_VERSION_MAJOR * VERSION_MAJOR) + (LIBAVFORMAT_MAX_VERSION_MINOR * VERSION_MINOR) + diff --git a/src/lib/ffmpeg/avio.pas b/src/lib/ffmpeg/avio.pas index 12e9847f..4c2c08d6 100644 --- a/src/lib/ffmpeg/avio.pas +++ b/src/lib/ffmpeg/avio.pas @@ -100,6 +100,9 @@ type max_packet_size: cint; (**< if non zero, the stream is packetized with this max packet size *) priv_data: pointer; filename: PAnsiChar; (**< specified URL *) +{$IF LIBAVFORMAT_VERSION >= 52070000} // 52.70.0 +{$IFEND} + is_connected: cint; end; PPURLContext = ^PURLContext; @@ -213,6 +216,27 @@ type {$IFEND} end; +{$IF LIBAVFORMAT_VERSION >= 52070000} // 52.70.0 +(** + * Creates an URLContext for accessing to the resource indicated by + * url, but doesn't initiate the connection yet. + * + * @param puc pointer to the location where, in case of success, the + * function puts the pointer to the created URLContext + * @param flags flags which control how the resource indicated by url + * is to be opened + * @return 0 in case of success, a negative value corresponding to an + * AVERROR code in case of failure + *) +function url_alloc(h: PPURLContext; {const} url: PAnsiChar; flags: cint): cint; + cdecl; external av__format; + +(** + * Connect an URLContext that has been allocated by url_alloc + *) +function url_connect(h: PURLContext): cint; + cdecl; external av__format; +{$IFEND} {$IF LIBAVFORMAT_VERSION >= 52021000} // 52.21.0 (** @@ -395,9 +419,9 @@ function av_register_protocol(protocol: PURLProtocol): cint; cdecl; external av__format; {$IFEND} {$IF LIBAVFORMAT_VERSION >= 52069000} // 52.69.0 -{$IFEND} function av_register_protocol2(protocol: PURLProtocol; size: cint): cint; cdecl; external av__format; +{$IFEND} type TReadWriteFunc = function(opaque: Pointer; buf: PByteArray; buf_size: cint): cint; cdecl; |