aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vorbis.c
diff options
context:
space:
mode:
authorDale Curtis <dalecurtis@chromium.org>2017-11-22 10:58:39 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2018-01-08 23:19:14 +0100
commite1a854da2d5477d0bc7338e7708831e1475e06f2 (patch)
treea8781566bb9d3b8447c68ea0eb06880121443d6c /libavcodec/vorbis.c
parentfc3e4c9ab300caa0bf8d95ae6c3fed8a22d488b0 (diff)
downloadffmpeg-e1a854da2d5477d0bc7338e7708831e1475e06f2.tar.gz
avcodec/vorbis: 1 << 31 > int32_t::max(), so use 1u << 31 instead.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 9648cc6d7fdbb0a260bed1e3e23300569cff9579) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/vorbis.c')
-rw-r--r--libavcodec/vorbis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vorbis.c b/libavcodec/vorbis.c
index 399020eec5..f710c23450 100644
--- a/libavcodec/vorbis.c
+++ b/libavcodec/vorbis.c
@@ -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;
}