summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_voc.c
diff options
context:
space:
mode:
authorRobin KAY <komadori@users.sourceforge.net>2002-10-05 14:39:24 +0000
committerRobin KAY <komadori@users.sourceforge.net>2002-10-05 14:39:24 +0000
commitd7dfcbeb67a733508efe3029bfcf13d3ac53c033 (patch)
treec71272b312d356ef776e5f862f9fec5294bc14bc /src/demuxers/demux_voc.c
parent6905b22fbc581c8b518853d3e2edef52f50be1a8 (diff)
downloadxine-lib-d7dfcbeb67a733508efe3029bfcf13d3ac53c033.tar.gz
xine-lib-d7dfcbeb67a733508efe3029bfcf13d3ac53c033.tar.bz2
Fixed segmentation faults in endian translation macros (SPARC, gcc 3.2)
CVS patchset: 2785 CVS date: 2002/10/05 14:39:24
Diffstat (limited to 'src/demuxers/demux_voc.c')
-rw-r--r--src/demuxers/demux_voc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/demuxers/demux_voc.c b/src/demuxers/demux_voc.c
index d18f445f9..d10c29c9b 100644
--- a/src/demuxers/demux_voc.c
+++ b/src/demuxers/demux_voc.c
@@ -23,7 +23,7 @@
* It will only play that block if it is PCM data. More variations will be
* supported as they are encountered.
*
- * $Id: demux_voc.c,v 1.8 2002/10/03 00:08:47 tmmm Exp $
+ * $Id: demux_voc.c,v 1.9 2002/10/05 14:39:24 komadori Exp $
*
*/
@@ -45,8 +45,8 @@
#include "buffer.h"
#include "bswap.h"
-#define LE_16(x) (le2me_16(*(uint16_t *)(x)))
-#define LE_32(x) (le2me_32(*(uint32_t *)(x)))
+#define LE_16(x) (le2me_16((uint16_t)(x)))
+#define LE_32(x) (le2me_32((uint32_t)(x)))
#define VALID_ENDS "voc"
#define PCM_BLOCK_ALIGN 1024
@@ -201,7 +201,7 @@ static int load_voc_and_send_headers(demux_voc_t *this) {
return DEMUX_CANNOT_HANDLE;
}
- first_block_offset = LE_16(&header[0x14]);
+ first_block_offset = LE_16(header[0x14]);
this->input->seek(this->input, first_block_offset, SEEK_SET);
/* load the block preamble */