diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-21 20:38:13 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-21 20:38:13 +0100 |
commit | d74c8d3adac889c57b60644c4c494c57754b244a (patch) | |
tree | 4ed11dacaa4d6a317f9355f0b181c35d78013344 | |
parent | 03f39fbb2a558153a3c464edec1378d637a755fe (diff) | |
download | ffmpeg-d74c8d3adac889c57b60644c4c494c57754b244a.tar.gz |
avcodec/adxenc: Use av_clip_intp2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/adxenc.c | 2 |
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); |