# HG changeset patch # User stefano # Date 1282069534 0 # Node ID 3aefb6df1f8654e694ee18eea12034d4898ad728 # Parent 00ee3f0ffe6defcc6a5fce36dbdeb32097a6cb2c Define macro AV_NE() and use it in libavdevice. Help further refactoring. diff -r 00ee3f0ffe6d -r 3aefb6df1f86 avutil.h --- a/avutil.h Wed Jul 28 12:08:26 2010 +0000 +++ b/avutil.h Tue Aug 17 18:25:34 2010 +0000 @@ -40,7 +40,7 @@ #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c) #define LIBAVUTIL_VERSION_MAJOR 50 -#define LIBAVUTIL_VERSION_MINOR 23 +#define LIBAVUTIL_VERSION_MINOR 24 #define LIBAVUTIL_VERSION_MICRO 0 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ diff -r 00ee3f0ffe6d -r 3aefb6df1f86 common.h --- a/common.h Wed Jul 28 12:08:26 2010 +0000 +++ b/common.h Tue Aug 17 18:25:34 2010 +0000 @@ -35,6 +35,13 @@ #include #include #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))