diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index d1beb4e15e..af81115ff8 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@ -452,7 +452,7 @@ static inline int decode_subframe(FLACContext *s, int channel) if (wasted) { int i; for (i = 0; i < s->blocksize; i++) - decoded[i] <<= wasted; + decoded[i] = (unsigned)decoded[i] << wasted; } return 0;