Mercurial > mplayer.hg
changeset 11652:b846d0a788c1
cdda: endianness fix
author | colin |
---|---|
date | Tue, 16 Dec 2003 07:35:04 +0000 |
parents | c94ee1c28a67 |
children | af2641a80200 |
files | libmpdemux/cdda.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/cdda.c Tue Dec 16 00:32:08 2003 +0000 +++ b/libmpdemux/cdda.c Tue Dec 16 07:35:04 2003 +0000 @@ -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 @@ 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);