diff options
author | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-17 18:50:32 +0000 |
---|---|---|
committer | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-17 18:50:32 +0000 |
commit | d57e4861924cdae00957b3c57b080b8492958c31 (patch) | |
tree | 55d68119558839f374d0c3ddc368ba09bbb71ee0 | |
parent | eceebf461cfc6b6139e5d8e88ba4716f0bcf9526 (diff) | |
download | mpv-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.c | 12 |
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); |