avcodec/vorbis: Fix another 1 << 31 > int32_t::max() with 1u.
authorDale Curtis <dalecurtis@chromium.org>
Thu, 30 Nov 2017 20:20:36 +0000 (12:20 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Dec 2017 16:46:12 +0000 (17:46 +0100)
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>
libavcodec/vorbis.c

index 5ccc37a..cca2aa7 100644 (file)
@@ -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;