summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-17 18:50:32 +0000
committerrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-17 18:50:32 +0000
commitd57e4861924cdae00957b3c57b080b8492958c31 (patch)
tree55d68119558839f374d0c3ddc368ba09bbb71ee0
parenteceebf461cfc6b6139e5d8e88ba4716f0bcf9526 (diff)
downloadmpv-d57e4861924cdae00957b3c57b080b8492958c31.tar.bz2
mpv-d57e4861924cdae00957b3c57b080b8492958c31.tar.xz
Remove byteswap hack with dnet audio
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10125 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpdemux/demux_realaud.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/libmpdemux/demux_realaud.c b/libmpdemux/demux_realaud.c
index 7479e13cc8..96469a8279 100644
--- a/libmpdemux/demux_realaud.c
+++ b/libmpdemux/demux_realaud.c
@@ -78,17 +78,6 @@ int demux_ra_fill_buffer(demuxer_t *demuxer)
dp = new_demux_packet(len);
stream_read(demuxer->stream, dp->buffer, len);
- if (sh->format == 0x2000) {
- // if DNET, swap bytes, as DNET is byte-swapped AC3:
- char *ptr = dp->buffer;
- int i;
- for (i = 0; i < len; i += 2) {
- const char tmp = ptr[0];
- ptr[0] = ptr[1];
- ptr[1] = tmp;
- ptr += 2;
- }
- }
dp->pts = demuxer->filepos / ra_priv->data_size;
dp->pos = demuxer->filepos;
dp->flags = 0;
@@ -254,7 +243,6 @@ void demux_open_ra(demuxer_t* demuxer)
break;
case FOURCC_DNET:
mp_msg(MSGT_DEMUX,MSGL_V,"Audio: DNET -> AC3\n");
- sh->format = 0x2000;
break;
default:
mp_msg(MSGT_DEMUX,MSGL_V,"Audio: Unknown (%d)\n", sh->format);