changeset 10482:3a88897db327

dts aid fix by f.stock@t-online.de (Florian-Wolfgang Stock)
author alex
date Sun, 27 Jul 2003 21:35:14 +0000
parents 1911eb291dfb
children f7969fbc9458
files libmpdemux/open.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/open.c	Sun Jul 27 21:24:33 2003 +0000
+++ b/libmpdemux/open.c	Sun Jul 27 21:35:14 2003 +0000
@@ -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