diff options
author | Clément Bœsch <u@pkh.me> | 2016-01-07 22:20:22 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2016-01-07 22:20:22 +0100 |
commit | 84a967df034baa85500972bb874f7d0dedb3b993 (patch) | |
tree | 636c0ce80a0c8a94e43ed9d332831dfdf9f49cc6 /libavutil/common.h | |
parent | f4c1a4848378d035b835e9e2ca1c62f15a5982b1 (diff) | |
download | ffmpeg-84a967df034baa85500972bb874f7d0dedb3b993.tar.gz |
lavu/common: fix FF_CEIL_RSHIFT() range comment
Diffstat (limited to 'libavutil/common.h')
-rw-r--r-- | libavutil/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index ea636431c1..bc6842edc0 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -54,7 +54,7 @@ #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b)) /* assume b>0 */ #define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) -/* assume a>0 and b>0 */ +/* assume a>=0 and b>=0 */ #define FF_CEIL_RSHIFT(a,b) (!av_builtin_constant_p(b) ? -((-(a)) >> (b)) \ : ((a) + (1<<(b)) - 1) >> (b)) #define FFUDIV(a,b) (((a)>0 ?(a):(a)-(b)+1) / (b)) |