mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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:
parent
1bb3b90db8
commit
5893e87537
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user