summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_ac3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_ac3.c')
-rw-r--r--src/demuxers/demux_ac3.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/demuxers/demux_ac3.c b/src/demuxers/demux_ac3.c
index 279da6336..ce33ab3c8 100644
--- a/src/demuxers/demux_ac3.c
+++ b/src/demuxers/demux_ac3.c
@@ -36,6 +36,9 @@
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
#define LOG_MODULE "demux_ac3"
#define LOG_VERBOSE
@@ -175,10 +178,10 @@ static int open_ac3_file(demux_ac3_t *this) {
lprintf("looks like a cd audio wav file\n");
/* Find the data chunk */
- offset = 20 + LE_32(&peak[16]);
+ offset = 20 + _X_LE_32(&peak[16]);
while (offset < peak_size-8) {
- unsigned int chunk_tag = LE_32(&peak[offset]);
- unsigned int chunk_size = LE_32(&peak[offset+4]);
+ unsigned int chunk_tag = _X_LE_32(&peak[offset]);
+ unsigned int chunk_size = _X_LE_32(&peak[offset+4]);
if (chunk_tag == DATA_TAG) {
offset += 8;