diff options
author | James Almer <jamrial@gmail.com> | 2015-04-22 04:28:21 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-04-22 04:41:20 +0300 |
commit | ba625dd8a12b8f440af7f50c833e5c1005d67c85 (patch) | |
tree | 866b471ad22b28d6b5e74e94e9c8f78fb8b1d040 /libavcodec/golomb.h | |
parent | 4f287a3c5007db853e4f1098ab194f9337e2f7da (diff) |
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/golomb.h')
-rw-r--r-- | libavcodec/golomb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h index 28ae2133dc..76da6a2387 100644 --- a/libavcodec/golomb.h +++ b/libavcodec/golomb.h @@ -518,7 +518,7 @@ static inline void set_ur_golomb(PutBitContext *pb, int i, int k, int limit, e = i >> k; if (e < limit) - put_bits(pb, e + k + 1, (1 << k) + (i & ((1 << k) - 1))); + put_bits(pb, e + k + 1, (1 << k) + av_mod_uintp2(i, k)); else put_bits(pb, limit + esc_len, i - limit + 1); } |