From f0216df3e7417a70b08c3c470db3248ed058f710 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 24 Dec 2016 17:41:00 +0100 Subject: [PATCH] aacdec: Improve and silence error message. Most errors from NeAACDecDecode() can be handled gracefully. This patch downgrades the severity level of the corresponding log messages from ERROR to NOTICE and explains the meaning of the three numbers of the second log message. --- aacdec_filter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aacdec_filter.c b/aacdec_filter.c index 017e439b..a5355d10 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -140,8 +140,10 @@ next_buffer: ret = -E_AAC_DECODE; if (padd->error_count++ > MAX_ERRORS) goto err; - PARA_ERROR_LOG("%s\n", NeAACDecGetErrorMessage(err)); - PARA_ERROR_LOG("consumed: %zu + %zu + %lu\n", + PARA_NOTICE_LOG("error #%u: (%s)\n", padd->error_count, + NeAACDecGetErrorMessage(err)); + PARA_NOTICE_LOG("consumed (total, buffer, frame): " + "%zu, %zu, %lu\n", padd->consumed_total, consumed, padd->frame_info.bytesconsumed); if (consumed < len) -- 2.39.2