Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2015-10-17 14:24:16 +0300
committerRostislav Pehlivanov <atomnuker@gmail.com>2015-10-17 14:24:16 +0300
commitb0a3c614b4e366a100a6f3982b8614da180c03c4 (patch)
treecb630e880dc7a969701ca70c787a4be2dee4d8e5 /libavcodec/aacenc_ltp.c
parent780dba01f9aed8c9b6ba05eceac2fe3eac71198b (diff)
aacenc_ltp: replace av_clip() with av_clip_uintp2()
Suggested by ubitux. Convenient.
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 0bd895472a..6e59a3ffef 100644
--- a/libavcodec/aacenc_ltp.c
+++ b/libavcodec/aacenc_ltp.c
@@ -101,7 +101,7 @@ void ff_aac_update_ltp(AACEncContext *s, SingleChannelElement *sce)
lag = i;
}
}
- lag = av_clip(lag, 0, 2047); /* 11 bits => 2^11 = 0->2047 */
+ lag = av_clip_uintp2(lag, 11); /* 11 bits => 2^11 = 0->2047 */
if (!lag) {
sce->ics.ltp.lag = lag;