summaryrefslogtreecommitdiff
path: root/libavcodec/amrwbdec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-01-18 18:36:48 -0300
committerJames Almer <jamrial@gmail.com>2016-01-29 19:58:34 -0300
commit8514f6dcfd29191d9ec5768eb647326a0cd4e761 (patch)
tree00db967f35c07e2df6e91800cf11787817fd5714 /libavcodec/amrwbdec.c
parent9a099526954962893f95d90ce202d07ea90d300c (diff)
downloadffmpeg-8514f6dcfd29191d9ec5768eb647326a0cd4e761.tar.gz
avcodec/amrwbdec: use av_mod_uintp2
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/amrwbdec.c')
-rw-r--r--libavcodec/amrwbdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/amrwbdec.c b/libavcodec/amrwbdec.c
index b73b700a71..a99dbd110e 100644
--- a/libavcodec/amrwbdec.c
+++ b/libavcodec/amrwbdec.c
@@ -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)