diff libmpdemux/demuxer.c @ 13006:8639d064d3a1

DTS support via lavc and libdts Patch by Aurelien Jacobs ( aurel at gnuage dot org ) dts in wav by me
author rtognimp
date Thu, 12 Aug 2004 12:36:08 +0000
parents 4235ae5a2d60
children 638673d1f83a
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Thu Aug 12 10:22:04 2004 +0000
+++ b/libmpdemux/demuxer.c	Thu Aug 12 12:36:08 2004 +0000
@@ -1308,7 +1308,8 @@
     switch(d_audio->id & 0xE0){  // 1110 0000 b  (high 3 bit: type  low 5: id)
       case 0x00: sh_audio->format=0x50;break; // mpeg
       case 0xA0: sh_audio->format=0x10001;break;  // dvd pcm
-      case 0x80: sh_audio->format=0x2000;break; // ac3
+      case 0x80: if((d_audio->id & 0xF8) == 0x88) sh_audio->format=0x2001;//dts
+                 else sh_audio->format=0x2000;break; // ac3
       default: sh_audio=NULL; // unknown type
     }
    }
@@ -1328,7 +1329,8 @@
     switch(d_audio->id & 0xE0){  // 1110 0000 b  (high 3 bit: type  low 5: id)
       case 0x00: sh_audio->format=0x50;break; // mpeg
       case 0xA0: sh_audio->format=0x10001;break;  // dvd pcm
-      case 0x80: sh_audio->format=0x2000;break; // ac3
+      case 0x80: if((d_audio->id & 0xF8) == 0x88) sh_audio->format=0x2001;//dts
+                 else sh_audio->format=0x2000;break; // ac3
       default: sh_audio=NULL; // unknown type
     }
    }