diff options
author | tue46wsdgxfjrt <jfbvxt@gmail.com> | 2014-02-27 16:36:09 -0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-26 19:27:33 +0200 |
commit | 669a09fb372fa58ff913ebc326cb64bb3e8e7928 (patch) | |
tree | 4cbf5270cc4ef7ae2b95fddbeef18c7231198686 /libavutil/log.h | |
parent | 262ea965e73eca0012b06bb06f80e7d7f54f05b6 (diff) | |
download | ffmpeg-669a09fb372fa58ff913ebc326cb64bb3e8e7928.tar.gz |
Add AV_LOG_PRINT_LEVEL flag to include log severity in default log formatting.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/log.h')
-rw-r--r-- | libavutil/log.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/log.h b/libavutil/log.h index d56d8436d2..a6a07e0653 100644 --- a/libavutil/log.h +++ b/libavutil/log.h @@ -321,6 +321,15 @@ void av_log_format_line(void *ptr, int level, const char *fmt, va_list vl, * call av_log(NULL, AV_LOG_QUIET, "%s", ""); at the end */ #define AV_LOG_SKIP_REPEATED 1 + +/** + * Include the log severity in messages originating from codecs. + * + * Results in messages such as: + * [rawvideo @ 0xDEADBEEF] [error] encode did not produce valid pts + */ +#define AV_LOG_PRINT_LEVEL 2 + void av_log_set_flags(int arg); int av_log_get_flags(void); |