[FFmpeg-cvslog] avcodec/vorbis: Fix another 1 << 31 > int32_t::max() with 1u.
Dale Curtis
git at videolan.org
Thu Feb 1 01:52:17 EET 2018
ffmpeg | branch: release/2.8 | Dale Curtis <dalecurtis at chromium.org> | Thu Nov 30 12:20:36 2017 -0800| [9166e6abd6c69a0a7e15b8797d7e3edc418b7fd6] | committer: Michael Niedermayer
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 at chromium.org>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 95bacb521af8cd28f146f045437c9f75717a493a)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9166e6abd6c69a0a7e15b8797d7e3edc418b7fd6
---
libavcodec/vorbis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vorbis.c b/libavcodec/vorbis.c
index 61c395e71e..80d5198c62 100644
--- a/libavcodec/vorbis.c
+++ b/libavcodec/vorbis.c
@@ -73,7 +73,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;
#ifdef DEBUG
av_log(NULL, AV_LOG_INFO, " %u. of %u code len %d code %d - ", p, num, bits[p], codes[p]);
More information about the ffmpeg-cvslog
mailing list