From 7868da29821d8ef8ceb120480ec08cb8ee3f7bd4 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 17 Apr 2014 23:38:19 +0000 Subject: [PATCH] aacdec: Remove pointless check and improve comment. "consumed" is always less than "len" here because of the check a few lines earlier. --- aacdec_filter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.39.5