1
mirror of https://github.com/mpv-player/mpv synced 2025-01-09 01:36:25 +01:00

Remove byteswap hack with dnet audio

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10125 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2003-05-17 18:50:32 +00:00
parent eceebf461c
commit d57e486192

View File

@ -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);