ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Tue Sep 8 22:50:51 2020 +0200| [64917ea6cff4022c2b3e08b58b0e4795614aa8cf] | committer: Michael Niedermayer
avcodec/fastaudio: Remove redundant % 32 Reviewed-by: Paul B Mahol <one...@gmail.com> Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=64917ea6cff4022c2b3e08b58b0e4795614aa8cf --- libavcodec/fastaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/fastaudio.c b/libavcodec/fastaudio.c index de006acd9b..1dda310612 100644 --- a/libavcodec/fastaudio.c +++ b/libavcodec/fastaudio.c @@ -92,7 +92,7 @@ static int read_bits(int bits, int *ppos, unsigned *src) r = src[(pos - 1) / 32] >> (32 - pos % 32); *ppos = pos; - return r & ((1 << (bits % 32)) - 1); + return r & ((1 << bits) - 1); } static const uint8_t bits[8] = { 6, 6, 5, 5, 4, 0, 3, 3, }; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".