changeset 21917:57bb521c89e5

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
author nicodvb
date Mon, 15 Jan 2007 21:21:42 +0000
parents f31ffbd84d07
children ba25f87420b3
files libmpdemux/demux_mpg.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c	Mon Jan 15 09:15:06 2007 +0000
+++ b/libmpdemux/demux_mpg.c	Mon Jan 15 21:21:42 2007 +0000
@@ -180,6 +180,7 @@
       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 @@
             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