mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avcodec/jpeg2000: support >32bit in ff_jpeg2000_ceildivpow2()
Fixes part of Ticket4680 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f01028bf58
commit
cd1a9908b5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user