Commit 49e040e8 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/log: fix negative log levels

These where broken by 7763118cSigned-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1f8a6bef
......@@ -258,10 +258,12 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
char line[LINE_SZ];
static int is_atty;
int type[2];
unsigned tint = level & 0xff00;
level &= 0xff;
unsigned tint = 0;
if (level >= 0) {
tint = level & 0xff00;
level &= 0xff;
}
if (level > av_log_level)
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment