aacdec: Remove pointless check and improve comment.
authorAndre Noll <maan@systemlinux.org>
Thu, 17 Apr 2014 23:38:19 +0000 (23:38 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 25 Mar 2017 10:54:36 +0000 (11:54 +0100)
"consumed" is always less than "len" here because of the check a few
lines earlier.

aacdec_filter.c

index 25e3c7e..92219a1 100644 (file)
@@ -144,8 +144,7 @@ next_buffer:
                        "%zu, %zu, %lu\n",
                        padd->consumed_total, consumed,
                        padd->frame_info.bytesconsumed);
-               if (consumed < len)
-                       consumed++; /* catch 21 */
+               consumed++; /* just eat one byte and hope for the best */
                goto success;
        }
        padd->error_count = 0;