From b0a3c614b4e366a100a6f3982b8614da180c03c4 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Sat, 17 Oct 2015 12:24:16 +0100 Subject: aacenc_ltp: replace av_clip() with av_clip_uintp2() Suggested by ubitux. Convenient. --- 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 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; -- cgit v1.2.3