summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2003-10-11 21:25:04 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2003-10-11 21:25:04 +0000
commit3c99788d960e74cbb0d9dc8e9f1da55596196c00 (patch)
tree2f671c199622255c656bccdb6c0d396459bd1e72 /src
parentc5db5836e1ccd424eb16978de7f13c23fb868621 (diff)
downloadxine-lib-3c99788d960e74cbb0d9dc8e9f1da55596196c00.tar.gz
xine-lib-3c99788d960e74cbb0d9dc8e9f1da55596196c00.tar.bz2
use bswap.h
CVS patchset: 5484 CVS date: 2003/10/11 21:25:04
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_asf.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/demuxers/demux_asf.c b/src/demuxers/demux_asf.c
index 246d684c2..1efb5402e 100644
--- a/src/demuxers/demux_asf.c
+++ b/src/demuxers/demux_asf.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: demux_asf.c,v 1.131 2003/10/08 22:53:17 tmattern Exp $
+ * $Id: demux_asf.c,v 1.132 2003/10/11 21:25:04 tmattern Exp $
*
* demultiplexer for asf streams
*
@@ -42,6 +42,7 @@
#include "xine_internal.h"
#include "demux.h"
#include "xineutils.h"
+#include "bswap.h"
#include "asfheader.h"
#include "xmlparser.h"
@@ -198,7 +199,7 @@ static uint16_t get_le16 (demux_asf_t *this) {
this->status = DEMUX_FINISHED;
}
- return buf[0] | (buf[1] << 8);
+ return LE_16(buf);
}
static uint32_t get_le32 (demux_asf_t *this) {
@@ -216,7 +217,7 @@ static uint32_t get_le32 (demux_asf_t *this) {
this->status = DEMUX_FINISHED;
}
- return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24);
+ return LE_32(buf);
}
static uint64_t get_le64 (demux_asf_t *this) {
@@ -232,14 +233,7 @@ static uint64_t get_le64 (demux_asf_t *this) {
this->status = DEMUX_FINISHED;
}
- return (uint64_t) buf[0]
- | ((uint64_t) buf[1] << 8)
- | ((uint64_t) buf[2] << 16)
- | ((uint64_t) buf[3] << 24)
- | ((uint64_t) buf[4] << 32)
- | ((uint64_t) buf[5] << 40)
- | ((uint64_t) buf[6] << 48)
- | ((uint64_t) buf[7] << 56) ;
+ return LE_64(buf);
}
static int get_guid (demux_asf_t *this) {