diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2017-11-22 10:58:39 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-11-24 19:03:03 +0100 |
commit | 9648cc6d7fdbb0a260bed1e3e23300569cff9579 (patch) | |
tree | 13aab6199c0ed85d81e359896b76d65144e25bc8 /libavcodec/vorbis.c | |
parent | 03fbc0daa7e37af024f8b017a28105c32bbe25ca (diff) | |
download | ffmpeg-9648cc6d7fdbb0a260bed1e3e23300569cff9579.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>
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 ce23b947f0..5ccc37a2df 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; } |