diff options
author | James Almer <jamrial@gmail.com> | 2015-04-21 22:28:21 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-04-21 22:41:20 -0300 |
commit | ba625dd8a12b8f440af7f50c833e5c1005d67c85 (patch) | |
tree | 866b471ad22b28d6b5e74e94e9c8f78fb8b1d040 /libavcodec/dvenc.c | |
parent | 4f287a3c5007db853e4f1098ab194f9337e2f7da (diff) | |
download | ffmpeg-ba625dd8a12b8f440af7f50c833e5c1005d67c85.tar.gz |
avcodec: use av_mod_uintp2() where useful
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/dvenc.c')
-rw-r--r-- | libavcodec/dvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvenc.c b/libavcodec/dvenc.c index 2442f2bc94..9ce72732f3 100644 --- a/libavcodec/dvenc.c +++ b/libavcodec/dvenc.c @@ -176,7 +176,7 @@ static av_always_inline PutBitContext *dv_encode_ac(EncBlockInfo *bi, if (bits_left) { size -= bits_left; put_bits(pb, bits_left, vlc >> size); - vlc = vlc & ((1 << size) - 1); + vlc = av_mod_uintp2(vlc, size); } if (pb + 1 >= pb_end) { bi->partial_bit_count = size; |