summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-17 18:25:34 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-17 18:25:34 +0000
commit4f2d2e4ed924834dea69a0ade184aa58cbec7d2e (patch)
tree7e2a8039a006a0a15e8b2c93195bc79da34dcb50 /libavutil
parent3f52a907e38c27f9c4ea02ab2a897ad7222ec632 (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')
-rw-r--r--libavutil/avutil.h2
-rw-r--r--libavutil/common.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index 50b29fc4a7..fdba9dee97 100644
--- a/libavutil/avutil.h
+++ b/libavutil/avutil.h
@@ -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 --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))