aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-07-20 19:13:11 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-07-20 19:13:11 +0000
commit9006de111c4f56259f90e9c3ebfae720ce650969 (patch)
tree5f6b0e796e2152b84c32a6cac2a32dd020f927b7 /src/lib
parenteb4e04eeb81f4821c0cdcf909113a49d081ff19e (diff)
downloadusdx-9006de111c4f56259f90e9c3ebfae720ce650969.tar.gz
usdx-9006de111c4f56259f90e9c3ebfae720ce650969.tar.xz
usdx-9006de111c4f56259f90e9c3ebfae720ce650969.zip
update avformat to 52.70.0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2586 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ffmpeg/avformat.pas4
-rw-r--r--src/lib/ffmpeg/avio.pas26
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;