# HG changeset patch
# User nicodvb
# Date 1168896102 0
# Node ID 57bb521c89e5d36efc3fdde436e4479f2409bc68
# Parent  f31ffbd84d07a8ffb76779c988f5cdb6b8e98c29
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

diff -r f31ffbd84d07 -r 57bb521c89e5 libmpdemux/demux_mpg.c
--- 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