From: Andre Noll Date: Sat, 24 Dec 2016 16:41:00 +0000 (+0100) Subject: aacdec: Improve and silence error message. X-Git-Tag: v0.6.0~7^2~12 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=f0216df3e7417a70b08c3c470db3248ed058f710;p=paraslash.git 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. --- 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)