changeset 10118:070f242e4437

skip dnet/ac3 byteswapping
author arpi
date Sat, 17 May 2003 11:34:37 +0000
parents d6153fc16ac5
children 1a777e2b8228
files libmpdemux/demux_real.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_real.c	Sat May 17 09:41:18 2003 +0000
+++ b/libmpdemux/demux_real.c	Sat May 17 11:34:37 2003 +0000
@@ -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'):