changeset 1002:3aefb6df1f86 libavutil

Define macro AV_NE() and use it in libavdevice. Help further refactoring.
author stefano
date Tue, 17 Aug 2010 18:25:34 +0000
parents 00ee3f0ffe6d
children 71594321c12f
files avutil.h common.h
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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, \
--- 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 <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))