changeset 31621:92ae8fd74b7f

bswap compatibility defines.
author reimar
date Sat, 10 Jul 2010 23:29:31 +0000
parents 508f24b02449
children 1e252399fd6b
files mpbswap.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpbswap.h	Sat Jul 10 23:18:45 2010 +0000
+++ b/mpbswap.h	Sat Jul 10 23:29:31 2010 +0000
@@ -23,6 +23,13 @@
 #include "config.h"
 #include "libavutil/bswap.h"
 
+#define bswap_16(v) av_bswap16(v)
+#define bswap_32(v) av_bswap32(v)
+#define le2me_16(v) av_le2ne16(v)
+#define le2me_32(v) av_le2ne32(v)
+#define le2me_64(v) av_le2ne64(v)
+#define be2me_32(v) av_be2ne32(v)
+
 #ifndef HAVE_SWAB
 void swab(const void *from, void *to, ssize_t n);
 #endif