Commit 014b0e50 authored by Jun Zhao's avatar Jun Zhao

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: 's avatarJun Zhao <barryjzhao@tencent.com>
parent 010c0efa
...@@ -144,7 +144,7 @@ void ff_aac_adjust_common_ltp(AACEncContext *s, ChannelElement *cpe) ...@@ -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]; int sum = sce0->ics.ltp.used[sfb] + sce1->ics.ltp.used[sfb];
if (sum != 2) { if (sum != 2) {
sce0->ics.ltp.used[sfb] = 0; sce0->ics.ltp.used[sfb] = 0;
} else if (sum == 2) { } else {
count++; count++;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment