Commit f01028bf authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/jpeg2000: Avoid one shift in ff_jpeg2000_ceildivpow2()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 86fb2032
......@@ -215,7 +215,7 @@ typedef struct Jpeg2000Component {
/* misc tools */
static inline int ff_jpeg2000_ceildivpow2(int a, int b)
{
return (a + (1 << b) - 1) >> b;
return -((-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