[FFmpeg-cvslog] lavu/common: fix FF_CEIL_RSHIFT() range comment

Clément Bœsch git at videolan.org
Thu Jan 7 22:20:39 CET 2016


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Thu Jan  7 22:20:22 2016 +0100| [84a967df034baa85500972bb874f7d0dedb3b993] | committer: Clément Bœsch

lavu/common: fix FF_CEIL_RSHIFT() range comment

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=84a967df034baa85500972bb874f7d0dedb3b993
---

 libavutil/common.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/common.h b/libavutil/common.h
index ea63643..bc6842e 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))



More information about the ffmpeg-cvslog mailing list