Commit cd1a9908 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/jpeg2000: support >32bit in ff_jpeg2000_ceildivpow2()

Fixes part of Ticket4680
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f01028bf
......@@ -215,7 +215,7 @@ typedef struct Jpeg2000Component {
/* misc tools */
static inline int ff_jpeg2000_ceildivpow2(int a, int b)
{
return -((-a) >> b);
return -(((int64_t)(-a)) >> b);
}
static inline int ff_jpeg2000_ceildiv(int a, int b)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment