aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-09-08 22:50:51 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2020-09-10 23:31:10 +0200
commit64917ea6cff4022c2b3e08b58b0e4795614aa8cf (patch)
tree0f363e28706c0f81c1b7c21386a3c15f3c6dd1c2 /libavcodec
parent5a844b638ac081e763709c38174596d3e02d6ece (diff)
downloadffmpeg-64917ea6cff4022c2b3e08b58b0e4795614aa8cf.tar.gz
avcodec/fastaudio: Remove redundant % 32
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/fastaudio.c2
1 files changed, 1 insertions, 1 deletions
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, };