From f587af8c56dbdd2de6dac262a83d928c51c0b96b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 12 Oct 2024 11:39:30 +0530 Subject: [PATCH] Set ffmpeg log level to ERROR --- src/calibre/utils/ffmpeg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/ffmpeg.c b/src/calibre/utils/ffmpeg.c index c6dcf67cfc..2a6ac4ad2b 100644 --- a/src/calibre/utils/ffmpeg.c +++ b/src/calibre/utils/ffmpeg.c @@ -518,7 +518,10 @@ wav_header_for_pcm_data(PyObject *self, PyObject *args) { // Boilerplate {{{ static int -exec_module(PyObject *module) { return 0; } +exec_module(PyObject *module) { + av_log_set_level(AV_LOG_ERROR); + return 0; +} CALIBRE_MODINIT_FUNC PyInit_ffmpeg(void) { static PyModuleDef_Slot slots[] = { {Py_mod_exec, exec_module}, {0, NULL} };