summaryrefslogtreecommitdiffstats
path: root/demux/ms_hdr.h
diff options
context:
space:
mode:
Diffstat (limited to 'demux/ms_hdr.h')
-rw-r--r--demux/ms_hdr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/demux/ms_hdr.h b/demux/ms_hdr.h
index 8e545635dd..7f837a58a4 100644
--- a/demux/ms_hdr.h
+++ b/demux/ms_hdr.h
@@ -22,6 +22,14 @@
#include <sys/types.h>
#include "config.h"
+#include "compat/mpbswap.h"
+
+#ifndef mmioFOURCC
+#define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
+ ( (uint32_t)(uint8_t)(ch0) | ( (uint32_t)(uint8_t)(ch1) << 8 ) | \
+ ( (uint32_t)(uint8_t)(ch2) << 16 ) | ( (uint32_t)(uint8_t)(ch3) << 24 ) )
+#endif
+
#ifndef _WAVEFORMATEX_
#define _WAVEFORMATEX_
typedef struct __attribute__((__packed__)) _WAVEFORMATEX {