1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

aacenc_ltp: replace av_clip() with av_clip_uintp2()

Suggested by ubitux.
Convenient.
This commit is contained in:
Rostislav Pehlivanov 2015-10-17 12:24:16 +01:00
parent 780dba01f9
commit b0a3c614b4

View File

@ -101,7 +101,7 @@ void ff_aac_update_ltp(AACEncContext *s, SingleChannelElement *sce)
lag = i; 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) { if (!lag) {
sce->ics.ltp.lag = lag; sce->ics.ltp.lag = lag;