X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fadxdec.c;h=40ed8e5ba79edf02b6ac6657f0f68efac7e5ea5b;hb=60e7021064ea9e99854c585d452e89f38635480e;hp=178ea99dcfc8f2e49d1722d63ea6e8764bae1ee1;hpb=5c363d3e595a9e5b7c42897b7aab91b91b154ac1;p=ffmpeg diff --git a/libavcodec/adxdec.c b/libavcodec/adxdec.c index 178ea99dcfc..40ed8e5ba79 100644 --- a/libavcodec/adxdec.c +++ b/libavcodec/adxdec.c @@ -81,7 +81,7 @@ static int adx_decode(ADXContext *c, int16_t *out, int offset, s2 = prev->s2; for (i = 0; i < BLOCK_SAMPLES; i++) { d = get_sbits(&gb, 4); - s0 = ((d * (1 << COEFF_BITS)) * scale + c->coeff[0] * s1 + c->coeff[1] * s2) >> COEFF_BITS; + s0 = d * scale + ((c->coeff[0] * s1 + c->coeff[1] * s2) >> COEFF_BITS); s2 = s1; s1 = av_clip_int16(s0); *out++ = s1;