2010-09-03 16:39:13 +00:00
|
|
|
$OpenBSD: patch-libavutil_common_h,v 1.2 2010/09/03 16:39:13 sthen Exp $
|
|
|
|
--- libavutil/common.h.orig Tue May 11 19:20:40 2010
|
|
|
|
+++ libavutil/common.h Thu Aug 19 21:54:13 2010
|
|
|
|
@@ -35,6 +35,17 @@
|
|
|
|
#include <stdlib.h>
|
2010-05-26 21:38:52 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include "attributes.h"
|
2010-09-03 16:39:13 +00:00
|
|
|
+#include "avconfig.h"
|
|
|
|
+
|
|
|
|
+#if AV_HAVE_BIGENDIAN
|
|
|
|
+# define AV_NE(be, le) be
|
|
|
|
+#else
|
|
|
|
+# define AV_NE(be, le) le
|
|
|
|
+#endif
|
|
|
|
+
|
2010-05-26 21:38:52 +00:00
|
|
|
+#ifndef UINT64_C
|
|
|
|
+#define UINT64_C(_c) __CONCAT(_c, ULL)
|
|
|
|
+#endif
|
2010-09-03 16:39:13 +00:00
|
|
|
|
2010-05-26 21:38:52 +00:00
|
|
|
//rounded division & shift
|
|
|
|
#define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
|