X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fadxdec.c;h=40ed8e5ba79edf02b6ac6657f0f68efac7e5ea5b;hb=df08db07110dc00f7dc0ca8bc5162fffcb9008c7;hp=178ea99dcfc8f2e49d1722d63ea6e8764bae1ee1;hpb=79025da3f2e7ab047c8f3c0c817952a98480b26b;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;