From: Andre Noll Date: Thu, 17 Apr 2014 23:38:19 +0000 (+0000) Subject: aacdec: Remove pointless check and improve comment. X-Git-Tag: v0.6.0~7^2~6 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=7868da29821d8ef8ceb120480ec08cb8ee3f7bd4 aacdec: Remove pointless check and improve comment. "consumed" is always less than "len" here because of the check a few lines earlier. --- diff --git a/aacdec_filter.c b/aacdec_filter.c index 25e3c7ec..92219a1b 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -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;