diff common.h @ 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 a3c26f53e6fa
children 71594321c12f
line wrap: on
line diff
--- 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))