mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/amrwbdec: use av_mod_uintp2
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
9a09952695
commit
8514f6dcfd
@ -358,7 +358,7 @@ static void decode_pitch_vector(AMRWBContext *ctx,
|
||||
}
|
||||
|
||||
/** Get x bits in the index interval [lsb,lsb+len-1] inclusive */
|
||||
#define BIT_STR(x,lsb,len) (((x) >> (lsb)) & ((1 << (len)) - 1))
|
||||
#define BIT_STR(x,lsb,len) av_mod_uintp2((x) >> (lsb), (len))
|
||||
|
||||
/** Get the bit at specified position */
|
||||
#define BIT_POS(x, p) (((x) >> (p)) & 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user