summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_voc.c
diff options
context:
space:
mode:
authorRobin KAY <komadori@users.sourceforge.net>2002-10-05 21:09:18 +0000
committerRobin KAY <komadori@users.sourceforge.net>2002-10-05 21:09:18 +0000
commitd74a5945bda0bcdba7797a7d84a2910710c489d5 (patch)
treed9c877de4e3121cc6698bf3dba3dcb060cb7acef /src/demuxers/demux_voc.c
parenteac25620909bff27249d602188d743497be1e954 (diff)
downloadxine-lib-d74a5945bda0bcdba7797a7d84a2910710c489d5.tar.gz
xine-lib-d74a5945bda0bcdba7797a7d84a2910710c489d5.tar.bz2
Backing out changes to endian translation macros
CVS patchset: 2788 CVS date: 2002/10/05 21:09:18
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 d10c29c9b..099a64524 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.9 2002/10/05 14:39:24 komadori Exp $
+ * $Id: demux_voc.c,v 1.10 2002/10/05 21:09:18 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 */