X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fjpeg2000.h;h=873e4505ec255c132b8312e9e817addcf6929690;hb=136ce8baa4fc16cf38690cb457f7356c00e00a28;hp=ed3b421ad8111cc046671c1f9b4f564d8bced23e;hpb=f439764657f72cacdd4eca915e8eeaed33e39972;p=ffmpeg diff --git a/libavcodec/jpeg2000.h b/libavcodec/jpeg2000.h index ed3b421ad81..873e4505ec2 100644 --- a/libavcodec/jpeg2000.h +++ b/libavcodec/jpeg2000.h @@ -220,7 +220,7 @@ static inline int ff_jpeg2000_ceildivpow2(int a, int b) static inline int ff_jpeg2000_ceildiv(int a, int b) { - return (a + b - 1) / b; + return (a + (int64_t)b - 1) / b; } /* TIER-1 routines */