You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avutil/tree: allow adjusting the log level
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user