From 6443cc76f5c1344a926fda677ec2fbed95bd52cd Mon Sep 17 00:00:00 2001 From: nicodvb Date: Mon, 15 Jan 2007 21:21:42 +0000 Subject: in EVO files substreams 0xC0 of private streams 0xBD contain [e]ac3. A more proper range will be committed when specs begin to appear; for the time being enjoy the audio stream git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21935 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_mpg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libmpdemux') diff --git a/libmpdemux/demux_mpg.c b/libmpdemux/demux_mpg.c index d70ff19388..a72fd18733 100644 --- a/libmpdemux/demux_mpg.c +++ b/libmpdemux/demux_mpg.c @@ -180,6 +180,7 @@ 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; if (mpg_d) mpg_d->a_stream_ids[mpg_d->num_a_streams++] = aid; } if(demux->audio->id==-1) demux->audio->id=aid; @@ -312,7 +313,7 @@ static int demux_mpg_read_packet(demuxer_t *demux,int id){ ds=demux->sub; } - } else if((aid & 0xC0) == 0x80 || (aid & 0xE0) == 0x00) { + } else if((aid & 0xC0) == 0x80 || (aid & 0xE0) == 0x00 || aid==0xC0) { // aid=128+(aid&0x7F); // aid=0x80..0xBF -- cgit v1.2.3