aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-11 21:33:23 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-11 21:33:23 +0000
commitbbc62afacd346ec0e528abc5babc8e456ff7f3d8 (patch)
treebd1e85b56aa60107f7f3d0b5fa280ddba78b987c
parent3db75f59e91a3e556b7beb3ddfae9bdac69992fc (diff)
downloadusdx-bbc62afacd346ec0e528abc5babc8e456ff7f3d8.tar.gz
usdx-bbc62afacd346ec0e528abc5babc8e456ff7f3d8.tar.xz
usdx-bbc62afacd346ec0e528abc5babc8e456ff7f3d8.zip
update error.h part relates to avutil 50.13.0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2358 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--src/lib/ffmpeg/avcodec.pas31
1 files changed, 23 insertions, 8 deletions
diff --git a/src/lib/ffmpeg/avcodec.pas b/src/lib/ffmpeg/avcodec.pas
index 8e297360..db861790 100644
--- a/src/lib/ffmpeg/avcodec.pas
+++ b/src/lib/ffmpeg/avcodec.pas
@@ -29,8 +29,6 @@
* Min. version: 51.16.0, revision 6577, Sat Oct 7 15:30:46 2006 UTC
* Max. version: 52.67.0, revision 23057, Tue May 11 18:30 2010 CET
*
- * Also check libavutil/error.h
- *
*)
unit avcodec;
@@ -4639,6 +4637,12 @@ function av_parse_video_frame_rate(frame_rate: PAVRational; str: {const} PAnsiCh
cdecl; external av__codec;
{$IFEND}
+{
+ The following error codes are moved to libavutil/error.h on
+ revision 22501 Mar 13 2010
+ It is kept here for now.
+}
+
{* error handling *}
const
@@ -4675,12 +4679,6 @@ const
AVERROR_SIGN = 1;
{$IFEND}
-{
- The following error codes are moved to libavutil/error.h on
- revision 22501 Mar 13 2010
- It is kept here for now.
-}
-
(*
#if EINVAL > 0
#define AVERROR(e) (-(e)) {**< Returns a negative error code from a POSIX error code, to return from library functions. *}
@@ -4709,6 +4707,23 @@ const
AVERROR_PATCHWELCOME = -(ord('P') or (ord('A') shl 8) or (ord('W') shl 16) or (ord('E') shl 24));
{$IFEND}
+(*
+ * Puts a description of the AVERROR code errnum in errbuf.
+ * In case of failure the global variable errno is set to indicate the
+ * error. Even in case of failure av_strerror() will print a generic
+ * error message indicating the errnum provided to errbuf.
+ *
+ * @param errbuf_size the size in bytes of errbuf
+ * @return 0 on success, a negative value if a description for errnum
+ * cannot be found
+ *)
+
+function av_strerror(errnum: cint; errbuf: Pchar; errbuf_size: cint): cint;
+ cdecl; external av__util;
+
+{$IF LIBAVUTIL_VERSION >= 50013000} // avutil!!! 50.13.0
+{$IFEND}
+
{$IF LIBAVCODEC_VERSION >= 52032000} // >= 52.32.0
(**
* Logs a generic warning message about a missing feature. This function is