From 9f87116c736f3487fd9bfb45a906f498c945afd3 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 18 Dec 2010 13:05:25 +0100 Subject: [PATCH 1/1] Suppress non-fatal bitstream error message at BOF/EOF. These errors occur frequently for 64KBit aac files. So print an error message only if the error occurs in the middle of the stream. --- aacdec_filter.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aacdec_filter.c b/aacdec_filter.c index 92f33d56..95c13305 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -167,6 +167,11 @@ next_buffer: ret = -E_AAC_DECODE; if (padd->error_count++ > MAX_ERRORS) goto err; + /* Suppress non-fatal bitstream error message at BOF/EOF */ + if (len < fn->min_iqs || padd->consumed_total == 0) { + consumed = len; + goto success; + } PARA_ERROR_LOG("%s\n", NeAACDecGetErrorMessage(err)); PARA_ERROR_LOG("consumed: %zu + %zd + %lu\n", padd->consumed_total, consumed, -- 2.30.2