avcodec/proresdec_lgpl: use av_mod_uintp2

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2016-01-18 18:37:55 -03:00
parent 1bb3b90db8
commit 5893e87537
1 changed files with 1 additions and 1 deletions

View File

@ -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);