[Mplayer-cvslog] CVS: main subreader.c,1.55,1.56

Arpi of Ize arpi at mplayerhq.hu
Thu Apr 25 14:59:27 CEST 2002


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

Modified Files:
	subreader.c 
Log Message:
frame-based mpsub parser fix - patch by Rizsanyi Zsolt <rizsanyi at myrealbox.com>

Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- subreader.c	27 Mar 2002 01:22:11 -0000	1.55
+++ subreader.c	25 Apr 2002 12:59:24 -0000	1.56
@@ -404,9 +404,9 @@
 		if (!fgets(line, LINE_LEN, fd)) return NULL;
 	} while (sscanf (line, "%f %f", &a, &b) !=2);
 
-	mpsub_position += (a*100.0);
+	mpsub_position += a*(sub_uses_time ? 100.0 : 1.0);
 	current->start=(int) mpsub_position;
-	mpsub_position += (b*100.0);
+	mpsub_position += b*(sub_uses_time ? 100.0 : 1.0);
 	current->end=(int) mpsub_position;
 
 	while (num < SUB_MAX_TEXT) {




More information about the MPlayer-cvslog mailing list