From 014b0e5092a2dfd1bc0d661fc53d8530ec83d772 Mon Sep 17 00:00:00 2001 From: Jun Zhao Date: Fri, 10 May 2019 15:49:45 +0800 Subject: [PATCH] lavc/aacenc_ltp: remove unnecessary condition check. Condition 'sum==2' is always true, so remove the check logic to make the code clean. Signed-off-by: Jun Zhao --- libavcodec/aacenc_ltp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/aacenc_ltp.c b/libavcodec/aacenc_ltp.c index 674a2a0680..f77f0b6a72 100644 --- a/libavcodec/aacenc_ltp.c +++ b/libavcodec/aacenc_ltp.c @@ -144,7 +144,7 @@ void ff_aac_adjust_common_ltp(AACEncContext *s, ChannelElement *cpe) int sum = sce0->ics.ltp.used[sfb] + sce1->ics.ltp.used[sfb]; if (sum != 2) { sce0->ics.ltp.used[sfb] = 0; - } else if (sum == 2) { + } else { count++; } }