changeset 21927:ee422890bca9

in evo files [e]ac3 substreams range from 0xc0 to 0xcf
author nicodvb
date Tue, 16 Jan 2007 22:50:47 +0000
parents a8cd73869242
children 8ec12f1f0bd5
files libmpdemux/demux_mpg.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c	Tue Jan 16 22:38:26 2007 +0000
+++ b/libmpdemux/demux_mpg.c	Tue Jan 16 22:50:47 2007 +0000
@@ -180,7 +180,8 @@
       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 @@
             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