From: Andre Noll Date: Sat, 18 Dec 2010 12:05:25 +0000 (+0100) Subject: Suppress non-fatal bitstream error message at BOF/EOF. X-Git-Tag: v0.4.6~49^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=9f87116c736f3487fd9bfb45a906f498c945afd3;hp=412644d90875f8d361e0e587e3a0e1e7cb89b252 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. --- 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,