Mercurial > libavutil.hg
comparison common.h @ 1005:f197db9ab43a libavutil
Add missing parentheses to AV_NE macro.
author | benoit |
---|---|
date | Mon, 23 Aug 2010 15:31:50 +0000 |
parents | 71594321c12f |
children | 61cb1c0a6eb6 |
comparison
equal
deleted
inserted
replaced
1004:9a6cf721c0b6 | 1005:f197db9ab43a |
---|---|
36 #include <string.h> | 36 #include <string.h> |
37 #include "attributes.h" | 37 #include "attributes.h" |
38 #include "libavutil/avconfig.h" | 38 #include "libavutil/avconfig.h" |
39 | 39 |
40 #if AV_HAVE_BIGENDIAN | 40 #if AV_HAVE_BIGENDIAN |
41 # define AV_NE(be, le) be | 41 # define AV_NE(be, le) (be) |
42 #else | 42 #else |
43 # define AV_NE(be, le) le | 43 # define AV_NE(be, le) (le) |
44 #endif | 44 #endif |
45 | 45 |
46 //rounded division & shift | 46 //rounded division & shift |
47 #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b)) | 47 #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b)) |
48 /* assume b>0 */ | 48 /* assume b>0 */ |