Add AV_LOG_PRINT_LEVEL flag to include log severity in default log formatting.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
tue46wsdgxfjrt 2014-02-27 16:36:09 -08:00 committed by Michael Niedermayer
parent 262ea965e7
commit 669a09fb37
3 changed files with 50 additions and 11 deletions

View file

@ -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);