Commit db75537e authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/tree: allow adjusting the log level

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 64783660
...@@ -206,12 +206,15 @@ static int cmp(void *a, const void *b) ...@@ -206,12 +206,15 @@ static int cmp(void *a, const void *b)
return (uint8_t *) a - (const uint8_t *) b; return (uint8_t *) a - (const uint8_t *) b;
} }
int main(void) int main(int argc, char **argv)
{ {
int i; int i;
void *k; void *k;
AVTreeNode *root = NULL, *node = NULL; AVTreeNode *root = NULL, *node = NULL;
AVLFG prng; AVLFG prng;
int log_level = argc <= 1 ? AV_LOG_INFO : atoi(argv[1]);
av_log_set_level(log_level);
av_lfg_init(&prng, 1); av_lfg_init(&prng, 1);
......
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