diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-21 12:04:45 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-21 12:04:45 +0000 |
commit | 35572be5588c92bff06d21791122175d05819374 (patch) | |
tree | 22d0aefe1311d2da5d917c434c12456dc1879b16 | |
parent | 2e80ca57ed2428f7c11cd18c9db2fef8790ce748 (diff) | |
download | usdx-35572be5588c92bff06d21791122175d05819374.tar.gz usdx-35572be5588c92bff06d21791122175d05819374.tar.xz usdx-35572be5588c92bff06d21791122175d05819374.zip |
- av_log_get_level()/av_log_set_level() added
- now uninformative FFmpeg error-messages can be disabled
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@965 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/lib/ffmpeg/avutil.pas | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Game/Code/lib/ffmpeg/avutil.pas b/Game/Code/lib/ffmpeg/avutil.pas index dcc88809..fca07ab1 100644 --- a/Game/Code/lib/ffmpeg/avutil.pas +++ b/Game/Code/lib/ffmpeg/avutil.pas @@ -28,6 +28,9 @@ * * mem.h: * revision 12218, Mon Feb 25 18:32:55 2008 UTC + * + * log.h: + * revision 11209, Wed Dec 12 21:48:50 2007 UTC *) unit avutil; @@ -227,6 +230,59 @@ function av_strdup({const} s: pchar): pchar; procedure av_freep (ptr: pointer); cdecl; external av__util; +(* log.h *) + +const +{$IF LIBAVUTIL_VERSION_MAJOR < 50} + AV_LOG_QUIET = -1; + AV_LOG_FATAL = 0; + AV_LOG_ERROR = 0; + AV_LOG_WARNING = 1; + AV_LOG_INFO = 1; + AV_LOG_VERBOSE = 1; + AV_LOG_DEBUG = 2; +{$ELSE} + AV_LOG_QUIET = -8; + +(** + * something went really wrong and we will crash now + *) + AV_LOG_PANIC = 0; + +(** + * something went wrong and recovery is not possible + * like no header in a format which depends on it or a combination + * of parameters which are not allowed + *) + AV_LOG_FATAL = 8; + +(** + * something went wrong and cannot losslessly be recovered + * but not all future data is affected + *) + AV_LOG_ERROR = 16; + +(** + * something somehow does not look correct / something which may or may not + * lead to some problems like use of -vstrict -2 + *) + AV_LOG_WARNING = 24; + + AV_LOG_INFO = 32; + AV_LOG_VERBOSE = 40; + +(** + * stuff which is only useful for libav* developers + *) + AV_LOG_DEBUG = 48; +{$IFEND} + +function av_log_get_level(): integer; + cdecl; external av__util; +procedure av_log_set_level(level: integer); + cdecl; external av__util; + + implementation end. |