changeset 1162:11e49d541f11

packet 0x1B6 (mpeg4 stream) detection
author arpi_esp
date Mon, 18 Jun 2001 22:11:04 +0000
parents 67c144d47a81
children ac1341d4a2a7
files demux_mpg.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/demux_mpg.c	Mon Jun 18 21:43:26 2001 +0000
+++ b/demux_mpg.c	Mon Jun 18 22:11:04 2001 +0000
@@ -249,6 +249,7 @@
 
 int num_elementary_packets100=0;
 int num_elementary_packets101=0;
+int num_elementary_packets1B6=0;
 
 int demux_mpg_es_fill_buffer(demuxer_t *demux){
 //if(demux->type==DEMUXER_TYPE_MPEG_ES)
@@ -310,12 +311,11 @@
         }
   } else {
     if(head>=0x100 && head<0x1B0){
-      if(head==0x100)
-        ++num_elementary_packets100;
-      else
-        if(head==0x101) ++num_elementary_packets101;
+      if(head==0x100) ++num_elementary_packets100; else
+      if(head==0x101) ++num_elementary_packets101;
       if(verbose>=3) printf("Opps... elementary video packet found: %03X\n",head);
-    }
+    } else
+      if(head==0x1B6) ++num_elementary_packets1B6;
 #if 1
     if(num_elementary_packets100>50 && num_elementary_packets101>50
        && skipped>4000000){