changeset 10124:41a8b2cd254c

Remove byteswap hack with dnet audio
author rtognimp
date Sat, 17 May 2003 18:50:32 +0000
parents 8bf6c57c5bbd
children 252428ac7978
files libmpdemux/demux_realaud.c
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_realaud.c	Sat May 17 18:19:48 2003 +0000
+++ b/libmpdemux/demux_realaud.c	Sat May 17 18:50:32 2003 +0000
@@ -78,17 +78,6 @@
 	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 @@
 			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);