[Mplayer-cvslog] CVS: main demux_mpg.c,1.5,1.6

Gabor Lenart lgb at users.sourceforge.net
Wed Apr 18 00:34:21 CEST 2001


Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv21966

Modified Files:
	demux_mpg.c 
Log Message:
Bad interpretation of a constant by me ...

Index: demux_mpg.c
===================================================================
RCS file: /cvsroot/mplayer/main/demux_mpg.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** demux_mpg.c	2001/04/17 22:04:44	1.5
--- demux_mpg.c	2001/04/17 22:34:19	1.6
***************
*** 35,39 ****
    len=stream_read_word(demux->stream);
    if(verbose>=3)  printf("PACKET len=%d",len);
!   if(len==0 || len>STREAM_BUFFER_SIZE) return -2;  // invalid packet !!!!!!
  
    while(len>0){   // Skip stuFFing bytes
--- 35,39 ----
    len=stream_read_word(demux->stream);
    if(verbose>=3)  printf("PACKET len=%d",len);
!   if(len==0 || len>4096) return -2;  // invalid packet !!!!!!
  
    while(len>0){   // Skip stuFFing bytes
***************
*** 131,135 ****
    if(verbose>=3) printf(" => len=%d\n",len);
  
!   if(len<=0 || len>STREAM_BUFFER_SIZE) return -1;  // Invalid packet size
    
    if(id>=0x1C0 && id<=0x1DF){
--- 131,135 ----
    if(verbose>=3) printf(" => len=%d\n",len);
  
!   if(len<=0 || len>4096) return -1;  // Invalid packet size
    
    if(id>=0x1C0 && id<=0x1DF){
***************
*** 177,181 ****
    if(demux->stream->eof) return 0;
    demux->filepos=stream_tell(demux->stream);
!   ds_read_packet(demux->video,demux->stream,STREAM_BUFFER_SIZE,0,0);
    return 1;
  }
--- 177,181 ----
    if(demux->stream->eof) return 0;
    demux->filepos=stream_tell(demux->stream);
!   ds_read_packet(demux->video,demux->stream,4096,0,0);
    return 1;
  }


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list