diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 517ea4f16b..73ef25b6c4 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1038,7 +1038,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; }