X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=aacdec_filter.c;h=95c13305519e39a86eff3cbe5cdf06b280ef8d04;hp=92f33d56eb03db7c67f3622246d49c0556b2d6bd;hb=7e37a7cf49df279b9ab467fa4f62dd376c791a26;hpb=412644d90875f8d361e0e587e3a0e1e7cb89b252 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,