[Mplayer-cvslog] CVS: main demuxer.c,1.28,1.29

Arpi of Ize arpi at mplayer.dev.hu
Thu Aug 23 15:20:27 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv9771

Modified Files:
	demuxer.c 
Log Message:
num_elementary_packets1xx reset

Index: demuxer.c
===================================================================
RCS file: /cvsroot/mplayer/main/demuxer.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- demuxer.c	23 Aug 2001 12:47:23 -0000	1.28
+++ demuxer.c	23 Aug 2001 13:20:25 -0000	1.29
@@ -326,6 +326,7 @@
 extern int num_elementary_packets100; // for MPEG-ES fileformat detection
 extern int num_elementary_packets101;
 extern int num_elementary_packetsPES;
+extern int num_elementary_packets1B6;
 
 // commandline options, flags:
 //extern int seek_to_byte;
@@ -354,6 +355,8 @@
 sh_audio_t *sh_audio=NULL;
 sh_video_t *sh_video=NULL;
 
+//printf("demux_open(%p,%d,%d,%d,%d)  \n",stream,file_format,audio_id,video_id,dvdsub_id);
+
 //=============== Try to open as AVI file: =================
 if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_AVI){
   demuxer=new_demuxer(stream,DEMUXER_TYPE_AVI,audio_id,video_id,dvdsub_id);
@@ -383,6 +386,11 @@
  while(pes>=0){
   demuxer=new_demuxer(stream,DEMUXER_TYPE_MPEG_PS,audio_id,video_id,dvdsub_id);
   if(!pes) demuxer->synced=1; // hack!
+  num_elementary_packets100=0;
+  num_elementary_packets101=0;
+  num_elementary_packets1B6=0;
+  num_elementary_packetsPES=0;
+
   if(ds_fill_buffer(demuxer->video)){
     if(!pes)
       mp_msg(MSGT_DEMUXER,MSGL_INFO,MSGTR_DetectedMPEGPESfile);




More information about the MPlayer-cvslog mailing list