aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/common.h
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/common.h
parent3f52a907e38c27f9c4ea02ab2a897ad7222ec632 (diff)
downloadffmpeg-4f2d2e4ed924834dea69a0ade184aa58cbec7d2e.tar.gz
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.h7
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))