ref: f1b756ef5bdc0bb759b2b140f15362fec024c1ff
parent: 532b3a6720beb58eb24aab519ca6398353b2c10b
author: James Almer <[email protected]>
date: Thu Jan 31 14:26:28 EST 2019
lib: disable logging in dav1d_parse_sequence_header() The function uses a Dav1dContext internally, so the caller can't disable logging or use a custom logger. Play it safe and disable logging altogether to avoid spamming stderr.
--- a/src/lib.c
+++ b/src/lib.c
@@ -196,6 +196,7 @@
Dav1dSettings s;
dav1d_default_settings(&s);
+ s.logger.callback = NULL;
Dav1dContext *c;
res = dav1d_open(&c, &s);