diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-17 22:25:34 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-17 22:25:34 +0400 |
commit | 4f2d2e4ed924834dea69a0ade184aa58cbec7d2e (patch) | |
tree | 7e2a8039a006a0a15e8b2c93195bc79da34dcb50 /libavutil/common.h | |
parent | 3f52a907e38c27f9c4ea02ab2a897ad7222ec632 (diff) |
Define macro AV_NE() and use it in libavdevice.
Help further refactoring.
Originally committed as revision 24814 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/common.h')
-rw-r--r-- | libavutil/common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index f9c03db559..e1b14dcc53 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -35,6 +35,13 @@ #include <stdlib.h> #include <string.h> #include "attributes.h" +#include "avconfig.h" + +#if AV_HAVE_BIGENDIAN +# define AV_NE(be, le) be +#else +# define AV_NE(be, le) le +#endif //rounded division & shift #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b)) |