[Mplayer-cvslog] CVS: main/libmpdemux demux_real.c,1.43,1.44

Arpi of Ize arpi at mplayerhq.hu
Sat May 17 13:35:03 CEST 2003


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

Modified Files:
	demux_real.c 
Log Message:
skip dnet/ac3 byteswapping


Index: demux_real.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_real.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- demux_real.c	30 Apr 2003 19:48:38 -0000	1.43
+++ demux_real.c	17 May 2003 11:34:37 -0000	1.44
@@ -469,6 +469,7 @@
 		if(cnt2>0x150) *((int*)NULL)=1; // sig11 :)
 	    }
 #endif
+#if 0
 	    if( ((sh_audio_t *)ds->sh)->format == 0x2000) {
 		// if DNET, swap bytes, as DNET is byte-swapped AC3:
 		char *ptr = dp->buffer;
@@ -481,6 +482,7 @@
 		    ptr += 2;
 		}
 	    }
+#endif
 	    dp->pts = (priv->a_pts==timestamp) ? 0 : (timestamp/1000.0f);
 	    priv->a_pts=timestamp;
 	    dp->pos = demuxer->filepos;
@@ -959,7 +961,7 @@
 		    {
 			case MKTAG('d', 'n', 'e', 't'):
 			    mp_msg(MSGT_DEMUX,MSGL_V,"Audio: DNET -> AC3\n");
-			    sh->format = 0x2000;
+//			    sh->format = 0x2000;
 			    break;
 			case MKTAG('1', '4', '_', '4'):
 			case MKTAG('2', '8', '_', '8'):



More information about the MPlayer-cvslog mailing list