[FFmpeg-cvslog] lavc/aacenc_ltp: remove unnecessary condition check.
Jun Zhao
git at videolan.org
Sun May 12 09:53:39 EEST 2019
ffmpeg | branch: master | Jun Zhao <barryjzhao at tencent.com> | Fri May 10 15:49:45 2019 +0800| [014b0e5092a2dfd1bc0d661fc53d8530ec83d772] | committer: 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: Jun Zhao <barryjzhao at tencent.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=014b0e5092a2dfd1bc0d661fc53d8530ec83d772
---
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++;
}
}
More information about the ffmpeg-cvslog
mailing list