Skip to content
Snippets Groups Projects
Commit 1f5630af authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/flacdec: Fix undefined shift in decode_subframe()


Fixes undefined behavior
Fixes: 639961-media

Found-by: default avatarMatt Wolenetz <wolenetz@google.com>
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent c72fa432
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment