Skip to content
Snippets Groups Projects
Commit 06a6f73a authored by Dale Curtis's avatar Dale Curtis Committed by Michael Niedermayer
Browse files

avcodec/vorbis: Fix another 1 << 31 > int32_t::max() with 1u.


Didn't notice this one when 9648cc6d was landed.

Signed-off-by: default avatarDale Curtis <dalecurtis@chromium.org>
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 95bacb52)
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 532f0d12
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ int ff_vorbis_len2vlc(uint8_t *bits, uint32_t *codes, unsigned num)
if (bits[p] > 32)
return AVERROR_INVALIDDATA;
for (i = 0; i < bits[p]; ++i)
exit_at_level[i+1] = 1 << i;
exit_at_level[i+1] = 1u << i;
#ifdef DEBUG
av_log(NULL, AV_LOG_INFO, " %u. of %u code len %d code %d - ", p, num, bits[p], codes[p]);
......
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