avcodec/vorbis: 1 << 31 > int32_t::max(), so use 1u << 31 instead.
authorDale Curtis <dalecurtis@chromium.org>
Wed, 22 Nov 2017 18:58:39 +0000 (10:58 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 24 Nov 2017 18:03:03 +0000 (19:03 +0100)
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vorbis.c

index ce23b94..5ccc37a 100644 (file)
@@ -91,7 +91,7 @@ int ff_vorbis_len2vlc(uint8_t *bits, uint32_t *codes, unsigned num)
         exit_at_level[i] = 0;
         // construct code (append 0s to end) and introduce new exits
         for (j = i + 1 ;j <= bits[p]; ++j)
-            exit_at_level[j] = code + (1 << (j - 1));
+            exit_at_level[j] = code + (1u << (j - 1));
         codes[p] = code;
     }