mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/fastaudio: Remove redundant % 32
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
5a844b638a
commit
64917ea6cf
@ -92,7 +92,7 @@ static int read_bits(int bits, int *ppos, unsigned *src)
|
|||||||
r = src[(pos - 1) / 32] >> (32 - pos % 32);
|
r = src[(pos - 1) / 32] >> (32 - pos % 32);
|
||||||
*ppos = pos;
|
*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, };
|
static const uint8_t bits[8] = { 6, 6, 5, 5, 4, 0, 3, 3, };
|
||||||
|
Loading…
Reference in New Issue
Block a user