diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index f7475b49549c68864db3ebf6382d5773ace07489..0bd3e1e5f73eda9af659549b40256037f7c15063 100644 --- a/libavcodec/shorten.c +++ b/libavcodec/shorten.c @@ -177,7 +177,7 @@ static void fix_bitshift(ShortenContext *s, int32_t *buffer) buffer[i] = 0; } else if (s->bitshift != 0) { for (i = 0; i < s->blocksize; i++) - buffer[i] <<= s->bitshift; + buffer[i] *= 1 << s->bitshift; } }