diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-01-15 21:21:42 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-01-15 21:21:42 +0000 |
commit | 6443cc76f5c1344a926fda677ec2fbed95bd52cd (patch) | |
tree | b5f840a01123135c402ef0f881cc2a7fa0c82f9d /libmpdemux | |
parent | 74b923332f33f3adf4b8c3bbfbbf2f2231723b9a (diff) | |
download | mpv-6443cc76f5c1344a926fda677ec2fbed95bd52cd.tar.bz2 mpv-6443cc76f5c1344a926fda677ec2fbed95bd52cd.tar.xz |
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
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mpg.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |