aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-21 20:38:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-21 20:38:13 +0100
commitd74c8d3adac889c57b60644c4c494c57754b244a (patch)
tree4ed11dacaa4d6a317f9355f0b181c35d78013344
parent03f39fbb2a558153a3c464edec1378d637a755fe (diff)
downloadffmpeg-d74c8d3adac889c57b60644c4c494c57754b244a.tar.gz
avcodec/adxenc: Use av_clip_intp2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/adxenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adxenc.c b/libavcodec/adxenc.c
index 4387ffbbbd..7736d09b56 100644
--- a/libavcodec/adxenc.c
+++ b/libavcodec/adxenc.c
@@ -81,7 +81,7 @@ static void adx_encode(ADXContext *c, uint8_t *adx, const int16_t *wav,
for (i = 0, j = 0; j < 32; i += channels, j++) {
d = ((wav[i] << COEFF_BITS) - c->coeff[0] * s1 - c->coeff[1] * s2) >> COEFF_BITS;
- d = av_clip(ROUNDED_DIV(d, scale), -8, 7);
+ d = av_clip_intp2(ROUNDED_DIV(d, scale), 3);
put_sbits(&pb, 4, d);