comparison 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
comparison
equal deleted inserted replaced
13005:8d37cc41a272 13006:8639d064d3a1
1306 } else { 1306 } else {
1307 sh_audio=d_audio->sh;sh_audio->ds=d_audio; 1307 sh_audio=d_audio->sh;sh_audio->ds=d_audio;
1308 switch(d_audio->id & 0xE0){ // 1110 0000 b (high 3 bit: type low 5: id) 1308 switch(d_audio->id & 0xE0){ // 1110 0000 b (high 3 bit: type low 5: id)
1309 case 0x00: sh_audio->format=0x50;break; // mpeg 1309 case 0x00: sh_audio->format=0x50;break; // mpeg
1310 case 0xA0: sh_audio->format=0x10001;break; // dvd pcm 1310 case 0xA0: sh_audio->format=0x10001;break; // dvd pcm
1311 case 0x80: sh_audio->format=0x2000;break; // ac3 1311 case 0x80: if((d_audio->id & 0xF8) == 0x88) sh_audio->format=0x2001;//dts
1312 else sh_audio->format=0x2000;break; // ac3
1312 default: sh_audio=NULL; // unknown type 1313 default: sh_audio=NULL; // unknown type
1313 } 1314 }
1314 } 1315 }
1315 } 1316 }
1316 break; 1317 break;
1326 } else { 1327 } else {
1327 sh_audio=d_audio->sh;sh_audio->ds=d_audio; 1328 sh_audio=d_audio->sh;sh_audio->ds=d_audio;
1328 switch(d_audio->id & 0xE0){ // 1110 0000 b (high 3 bit: type low 5: id) 1329 switch(d_audio->id & 0xE0){ // 1110 0000 b (high 3 bit: type low 5: id)
1329 case 0x00: sh_audio->format=0x50;break; // mpeg 1330 case 0x00: sh_audio->format=0x50;break; // mpeg
1330 case 0xA0: sh_audio->format=0x10001;break; // dvd pcm 1331 case 0xA0: sh_audio->format=0x10001;break; // dvd pcm
1331 case 0x80: sh_audio->format=0x2000;break; // ac3 1332 case 0x80: if((d_audio->id & 0xF8) == 0x88) sh_audio->format=0x2001;//dts
1333 else sh_audio->format=0x2000;break; // ac3
1332 default: sh_audio=NULL; // unknown type 1334 default: sh_audio=NULL; // unknown type
1333 } 1335 }
1334 } 1336 }
1335 } 1337 }
1336 break; 1338 break;