From 198d80de3be06f39f316f516fba655392d7b885a Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 6 Apr 2014 12:13:10 +0200 Subject: [PATCH] aacdec: Don't eat full buffer on errors. On decoding errors, if the call to NeAACDecDecode() did not consume anything from the input buffer, we currently throw away the full buffer. This does not necessarily improve matters, so let's just eat one byte and hope that subsequent calls succeed. --- aacdec_filter.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/aacdec_filter.c b/aacdec_filter.c index c9f81512..d85f3374 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -279,11 +279,6 @@ 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 + %zu + %lu\n", padd->consumed_total, consumed, -- 2.39.2