From 375fe84da638a833718f2bfbced31fad8e807010 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Tue, 16 Jan 2007 22:50:47 +0000 Subject: 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 --- libmpdemux/demux_mpg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libmpdemux/demux_mpg.c') diff --git a/libmpdemux/demux_mpg.c b/libmpdemux/demux_mpg.c index d8dc6b8ad6..d479a74936 100644 --- a/libmpdemux/demux_mpg.c +++ b/libmpdemux/demux_mpg.c @@ -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 -- cgit v1.2.3