diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-10-17 14:24:16 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-10-17 14:24:16 +0300 |
commit | b0a3c614b4e366a100a6f3982b8614da180c03c4 (patch) | |
tree | cb630e880dc7a969701ca70c787a4be2dee4d8e5 | |
parent | 780dba01f9aed8c9b6ba05eceac2fe3eac71198b (diff) |
aacenc_ltp: replace av_clip() with av_clip_uintp2()
Suggested by ubitux.
Convenient.
-rw-r--r-- | libavcodec/aacenc_ltp.c | 2 |
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; |