Browse Source

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

Fixes part of Ticket4680

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
cd1a9908b5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/jpeg2000.h

+ 1
- 1
libavcodec/jpeg2000.h View File

@@ -215,7 +215,7 @@ typedef struct Jpeg2000Component {
/* misc tools */ /* misc tools */
static inline int ff_jpeg2000_ceildivpow2(int a, int b) 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) static inline int ff_jpeg2000_ceildiv(int a, int b)


Loading…
Cancel
Save