in evo files [e]ac3 substreams range from 0xc0 to 0xcf

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21945 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2007-01-16 22:50:47 +00:00
parent 1e93b37a87
commit 375fe84da6
1 changed files with 3 additions and 2 deletions

View File

@ -180,7 +180,8 @@ static void new_audio_stream(demuxer_t *demux, int aid){
case 0x80: if((aid & 0xF8) == 0x88) sh_a->format=0x2001;//dts
else sh_a->format=0x2000;break; // ac3
}
if(aid == 0xC0) sh_a->format=0x2000;
//evo files
if(aid & 0xC0 == 0xC0) sh_a->format=0x2000;
if (mpg_d) mpg_d->a_stream_ids[mpg_d->num_a_streams++] = aid;
}
if(demux->audio->id==-1) demux->audio->id=aid;
@ -313,7 +314,7 @@ static int demux_mpg_read_packet(demuxer_t *demux,int id){
ds=demux->sub;
}
} else if((aid & 0xC0) == 0x80 || (aid & 0xE0) == 0x00 || aid==0xC0) {
} else if((aid & 0xC0) == 0x80 || (aid & 0xE0) == 0x00 || (aid & 0xC0) == 0xC0) {
// aid=128+(aid&0x7F);
// aid=0x80..0xBF