From d2a4cbd4da5387271719425e51ab6cd9442baaba Mon Sep 17 00:00:00 2001 From: arpi_esp Date: Mon, 18 Jun 2001 22:11:04 +0000 Subject: [PATCH] packet 0x1B6 (mpeg4 stream) detection git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1163 b3059339-0415-0410-9bf9-f77b7e298cf2 --- demux_mpg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/demux_mpg.c b/demux_mpg.c index f9b8b425c6..1c6d121e90 100644 --- a/demux_mpg.c +++ b/demux_mpg.c @@ -249,6 +249,7 @@ static int demux_mpg_read_packet(demuxer_t *demux,int id){ 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 @@ do{ } } 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){