[Mplayer-cvslog] CVS: main/libmpdemux open.c,1.82,1.83

Alex Beregszaszi alex at mplayerhq.hu
Sun Jul 27 23:35:42 CEST 2003


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

Modified Files:
	open.c 
Log Message:
dts aid fix by f.stock at t-online.de (Florian-Wolfgang Stock)

Index: open.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/open.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- open.c	20 Jun 2003 15:24:06 -0000	1.82
+++ open.c	27 Jul 2003 21:35:14 -0000	1.83
@@ -66,7 +66,7 @@
         { "ac3","unknown","mpeg1","mpeg2ext","lpcm","unknown","dts" };
 
 char * dvd_audio_stream_channels[6] =
-	{ "unknown", "stereo", "unknown", "unknown", "unknown", "5.1" };
+	{ "mono", "stereo", "unknown", "unknown", "5.1/6.1", "5.1" };
 #endif
 
 #include "cue_read.h"
@@ -349,8 +349,11 @@
 	  switch ( audio->audio_format )
 	   {
 	    case 0: // ac3
+	  	    d->audio_streams[d->nr_of_channels].id=ac3aid;
+		    ac3aid++;
+		    break;
 	    case 6: // dts
-	            d->audio_streams[d->nr_of_channels].id=ac3aid;
+	            d->audio_streams[d->nr_of_channels].id=ac3aid+8;
 		    ac3aid++;
 		    break;
 	    case 2: // mpeg layer 1/2/3



More information about the MPlayer-cvslog mailing list