mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 10:30:05 +01:00
avcodec/vorbis: Fix another 1 << 31 > int32_t::max() with 1u.
Didn't notice this one when9648cc6dwas landed. Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit95bacb521a) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
532f0d1278
commit
06a6f73ad8
@@ -73,7 +73,7 @@ int ff_vorbis_len2vlc(uint8_t *bits, uint32_t *codes, unsigned num)
|
|||||||
if (bits[p] > 32)
|
if (bits[p] > 32)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
for (i = 0; i < bits[p]; ++i)
|
for (i = 0; i < bits[p]; ++i)
|
||||||
exit_at_level[i+1] = 1 << i;
|
exit_at_level[i+1] = 1u << i;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
av_log(NULL, AV_LOG_INFO, " %u. of %u code len %d code %d - ", p, num, bits[p], codes[p]);
|
av_log(NULL, AV_LOG_INFO, " %u. of %u code len %d code %d - ", p, num, bits[p], codes[p]);
|
||||||
|
|||||||
Reference in New Issue
Block a user