[Mplayer-cvslog] CVS: main/libmpdemux demux_realaud.c,1.2,1.3

Roberto Togni CVS rtognimp at mplayerhq.hu
Sat May 17 20:51:01 CEST 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv11607

Modified Files:
	demux_realaud.c 
Log Message:
Remove byteswap hack with dnet audio

Index: demux_realaud.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_realaud.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- demux_realaud.c	30 Apr 2003 20:17:35 -0000	1.2
+++ demux_realaud.c	17 May 2003 18:50:32 -0000	1.3
@@ -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);



More information about the MPlayer-cvslog mailing list