aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-21 20:41:36 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-21 20:41:36 +0100
commitf848a66009f25e32ee5e1244a20060a34c777be0 (patch)
tree29a356056850f8ca4ef28210c63d723563480d4d /libavcodec/adpcm.c
parentd1c705087f52a4c39ae982d46d91c35810c1546f (diff)
downloadffmpeg-f848a66009f25e32ee5e1244a20060a34c777be0.tar.gz
avcodec/adpcm: use av_clip_intp2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r--libavcodec/adpcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 7785a7a6dc..1c3fdc43d3 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -269,7 +269,7 @@ static inline short adpcm_ima_oki_expand_nibble(ADPCMChannelStatus *c, int nibbl
if (sign) predictor -= diff;
else predictor += diff;
- c->predictor = av_clip(predictor, -2048, 2047);
+ c->predictor = av_clip_intp2(predictor, 11);
c->step_index = step_index;
return c->predictor << 4;