Browse Source

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>
tags/n4.2
Jun Zhao 6 years ago
parent
commit
014b0e5092
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/aacenc_ltp.c

+ 1
- 1
libavcodec/aacenc_ltp.c View File

@@ -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++;
}
}


Loading…
Cancel
Save