[Mplayer-cvslog] CVS: main subreader.c,1.11,1.12

Dariush Pietrzak eyck at users.sourceforge.net
Thu May 24 11:19:40 CEST 2001


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

Modified Files:
	subreader.c 
Log Message:
Wrong header lenght count for vplayer format fixed.


Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** subreader.c	2001/05/22 11:09:26	1.11
--- subreader.c	2001/05/24 09:19:38	1.12
***************
*** 223,227 ****
  	int setime,etime;
  	char *p=NULL, *q=NULL, *l=NULL,*next;
! 	int i,len,len2;
  
  	bzero (current, sizeof(current));
--- 223,227 ----
  	int setime,etime;
  	char *p=NULL, *q=NULL, *l=NULL,*next;
! 	int i,len,len2,plen;
  
  	bzero (current, sizeof(current));
***************
*** 229,233 ****
  	while (!current->text[0]) {
  		if (!fgets (line, 1000, fd)) return NULL;
! 		if ((len=sscanf (line, "%d:%d:%d:",&a1,&a2,&a3)) < 3)
  			continue;
  		if (!fgets (line2, 1000, fd)) return NULL;
--- 229,233 ----
  	while (!current->text[0]) {
  		if (!fgets (line, 1000, fd)) return NULL;
! 		if ((len=sscanf (line, "%d:%d:%d:%n",&a1,&a2,&a3,&plen)) < 3)
  			continue;
  		if (!fgets (line2, 1000, fd)) return NULL;
***************
*** 240,244 ****
  		current->end   = b1*360000+b2*6000+b3*100;
  		// teraz czas na wkopiowanie stringu
! 		p=line;	p+=9;i=0;
  		if (*p!='|') {
  			//
--- 240,244 ----
  		current->end   = b1*360000+b2*6000+b3*100;
  		// teraz czas na wkopiowanie stringu
! 		p=line;	p+=plen;i=0;
  		if (*p!='|') {
  			//


_______________________________________________
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