diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index d1141f67a9..04220d6ec4 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1039,7 +1039,7 @@ static int decode_block(ALSDecContext *ctx, ALSBlockData *bd) if (*bd->shift_lsbs) for (smp = 0; smp < bd->block_length; smp++) - bd->raw_samples[smp] <<= *bd->shift_lsbs; + bd->raw_samples[smp] = (unsigned)bd->raw_samples[smp] << *bd->shift_lsbs; return 0; }