summaryrefslogtreecommitdiff
path: root/libavcodec/opus.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/opus.h')
-rw-r--r--libavcodec/opus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/opus.h b/libavcodec/opus.h
index 1faa7d3d01..92bb28a371 100644
--- a/libavcodec/opus.h
+++ b/libavcodec/opus.h
@@ -279,7 +279,7 @@ static av_always_inline unsigned int opus_getrawbits(OpusRangeCoder *rc, unsigne
rc->rb.bytes--;
}
- value = rc->rb.cacheval & ((1<<count)-1);
+ value = av_mod_uintp2(rc->rb.cacheval, count);
rc->rb.cacheval >>= count;
rc->rb.cachelen -= count;
rc->total_read_bits += count;