diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2017-11-30 23:20:36 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-12-01 19:46:12 +0300 |
commit | 95bacb521af8cd28f146f045437c9f75717a493a (patch) | |
tree | 5f161549ce342887c720e206fb94818651b2750f /libavcodec/vorbis.c | |
parent | 2cfc8b172ce767928a6394e066cb0b2789efd395 (diff) |
avcodec/vorbis: Fix another 1 << 31 > int32_t::max() with 1u.
Didn't notice this one when 9648cc6d was landed.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/vorbis.c')
-rw-r--r-- | libavcodec/vorbis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vorbis.c b/libavcodec/vorbis.c index 5ccc37a2df..cca2aa7c63 100644 --- a/libavcodec/vorbis.c +++ b/libavcodec/vorbis.c @@ -67,7 +67,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; ++p; |