]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Suppress non-fatal bitstream error message at BOF/EOF.
authorAndre Noll <maan@systemlinux.org>
Sat, 18 Dec 2010 12:05:25 +0000 (13:05 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 20 Jan 2011 20:23:54 +0000 (21:23 +0100)
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

index 92f33d56eb03db7c67f3622246d49c0556b2d6bd..95c13305519e39a86eff3cbe5cdf06b280ef8d04 100644 (file)
@@ -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,