diff options
author | James Almer <jamrial@gmail.com> | 2016-01-19 00:37:55 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-01-30 01:58:44 +0300 |
commit | 5893e8753702765ec4c2f775d7beef6afe7265e7 (patch) | |
tree | 7aa582e0f2a3c51bb152f63ba39fcf14d558f353 /libavcodec/proresdec_lgpl.c | |
parent | 1bb3b90db8332dfc387c7bfecb98e53583596de1 (diff) |
avcodec/proresdec_lgpl: use av_mod_uintp2
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/proresdec_lgpl.c')
-rw-r--r-- | libavcodec/proresdec_lgpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/proresdec_lgpl.c b/libavcodec/proresdec_lgpl.c index 9e5674eccc..467a423f23 100644 --- a/libavcodec/proresdec_lgpl.c +++ b/libavcodec/proresdec_lgpl.c @@ -251,7 +251,7 @@ static int decode_picture_header(ProresContext *ctx, const uint8_t *buf, (1 << (4 + ctx->frame->interlaced_frame)) - 1) >> (4 + ctx->frame->interlaced_frame); - remainder = ctx->num_x_mbs & ((1 << slice_width_factor) - 1); + remainder = av_mod_uintp2(ctx->num_x_mbs, slice_width_factor); num_x_slices = (ctx->num_x_mbs >> slice_width_factor) + (remainder & 1) + ((remainder >> 1) & 1) + ((remainder >> 2) & 1); |