Set FFmpeg log level to panic

This commit is contained in:
Aaro Altonen 2020-05-11 11:19:14 +03:00
parent 180071db52
commit 4bae67527c
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ void thread_func(void *mem, size_t len, char *addr_, int thread_num, double fps,
codec = avcodec_find_encoder(codec_id);
c = avcodec_alloc_context3(codec);
av_log_set_level(AV_LOG_PANIC);
c->width = HEIGHT;
c->height = WIDTH;
c->time_base.num = 1;