comparison libmpdemux/demux_mpg.c @ 21919:05223564b604

one more #if 1 removed
author nicodvb
date Mon, 15 Jan 2007 23:03:45 +0000
parents ba25f87420b3
children ee422890bca9
comparison
equal deleted inserted replaced
21918:ba25f87420b3 21919:05223564b604
685 if((head>=0x1C0 && head<0x1F0) || head==0x1BD){ 685 if((head>=0x1C0 && head<0x1F0) || head==0x1BD){
686 ++num_elementary_packetsPES; 686 ++num_elementary_packetsPES;
687 mp_msg(MSGT_DEMUX,MSGL_DBG3,"Opps... PES packet found: %03X\n",head); 687 mp_msg(MSGT_DEMUX,MSGL_DBG3,"Opps... PES packet found: %03X\n",head);
688 } else 688 } else
689 if(head==0x1B6) ++num_elementary_packets1B6; 689 if(head==0x1B6) ++num_elementary_packets1B6;
690 #if 1 690
691 if( ( (num_elementary_packets100>50 && num_elementary_packets101>50) || 691 if( ( (num_elementary_packets100>50 && num_elementary_packets101>50) ||
692 (num_elementary_packetsPES>50) ) && skipped>4000000){ 692 (num_elementary_packetsPES>50) ) && skipped>4000000){
693 mp_msg(MSGT_DEMUX,MSGL_V,"sync_mpeg_ps: seems to be ES/PES stream...\n"); 693 mp_msg(MSGT_DEMUX,MSGL_V,"sync_mpeg_ps: seems to be ES/PES stream...\n");
694 demux->stream->eof=1; 694 demux->stream->eof=1;
695 break; 695 break;
697 if(num_mp3audio_packets>100 && num_elementary_packets100<10){ 697 if(num_mp3audio_packets>100 && num_elementary_packets100<10){
698 mp_msg(MSGT_DEMUX,MSGL_V,"sync_mpeg_ps: seems to be MP3 stream...\n"); 698 mp_msg(MSGT_DEMUX,MSGL_V,"sync_mpeg_ps: seems to be MP3 stream...\n");
699 demux->stream->eof=1; 699 demux->stream->eof=1;
700 break; 700 break;
701 } 701 }
702 #endif
703 } 702 }
704 } while(ret!=1); 703 } while(ret!=1);
705 mp_dbg(MSGT_DEMUX,MSGL_DBG2,"demux: %d bad bytes skipped\n",skipped); 704 mp_dbg(MSGT_DEMUX,MSGL_DBG2,"demux: %d bad bytes skipped\n",skipped);
706 if(demux->stream->eof){ 705 if(demux->stream->eof){
707 mp_msg(MSGT_DEMUX,MSGL_V,"MPEG Stream reached EOF\n"); 706 mp_msg(MSGT_DEMUX,MSGL_V,"MPEG Stream reached EOF\n");