diff options
author | 2003-12-16 07:35:04 +0000 | |
---|---|---|
committer | 2003-12-16 07:35:04 +0000 | |
commit | d984734abd862aaf70e7fb33328d2df8d0ff3012 (patch) | |
tree | 50bae2d573990a6b9fdd0687ffd36d455ee900b9 /libmpdemux | |
parent | 424cd89dc89f4d1f166dc9bf78ac46181903d5e5 (diff) |
cdda: endianness fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11653 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/cdda.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmpdemux/cdda.c b/libmpdemux/cdda.c index 6d46e1aab3..a348e6ce3d 100644 --- a/libmpdemux/cdda.c +++ b/libmpdemux/cdda.c @@ -5,6 +5,7 @@ #include "stream.h" #include "../m_option.h" #include "../m_struct.h" +#include "../bswap.h" #include <stdio.h> #include <stdlib.h> @@ -254,6 +255,11 @@ static int fill_buffer(stream_t* s, char* buffer, int max_len) { buf = paranoia_read(p->cdp,cdparanoia_callback); +#ifdef WORDS_BIGENDIAN + for(i=0;i<CD_FRAMESIZE_RAW/2;i++) + buf[i]=le2me_16(buf[i]); +#endif + p->sector++; s->pos = p->sector*CD_FRAMESIZE_RAW; memcpy(buffer,buf,CD_FRAMESIZE_RAW); |