summaryrefslogtreecommitdiff
path: root/libavcodec/aacenc_ltp.c
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2019-05-10 15:49:45 +0800
committerJun Zhao <barryjzhao@tencent.com>2019-05-12 14:17:10 +0800
commit014b0e5092a2dfd1bc0d661fc53d8530ec83d772 (patch)
treef04744d2f136fbea55328009f298fcf025d1a1d5 /libavcodec/aacenc_ltp.c
parent010c0efada6dd4a13c56d3678702b49c1c1e99e0 (diff)
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 <barryjzhao@tencent.com>
Diffstat (limited to 'libavcodec/aacenc_ltp.c')
-rw-r--r--libavcodec/aacenc_ltp.c2
1 files changed, 1 insertions, 1 deletions
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++;
}
}