[Mplayer-cvslog] CVS: main subreader.c,1.52,1.53

Megyer Laszlo laaz at mplayer.dev.hu
Thu Feb 28 02:01:53 CET 2002


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

Modified Files:
	subreader.c 
Log Message:
Fixed a bug with -dumpmpsub


Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- subreader.c	3 Feb 2002 19:17:22 -0000	1.52
+++ subreader.c	28 Feb 2002 01:01:50 -0000	1.53
@@ -815,8 +815,8 @@
 			else
 			fprintf (fd, " %.2f\n",b);
 		} else {
-			fprintf (fd, "%ld %ld\n", egysub->start-mpsub_position,
-					egysub->end-egysub->start);
+			fprintf (fd, "%ld %ld\n", (egysub->start)-((long)mpsub_position),
+					(egysub->end)-(egysub->start));
 		}
 
 		mpsub_position = egysub->end;
@@ -826,7 +826,7 @@
 		fprintf (fd, "\n");
 	}
 	fclose (fd);
-	printf ("Subtitles dumped in \'dump.mpsub\'.\n");
+	printf ("SUB: Subtitles dumped in \'dump.mpsub\'.\n");
 }
 
 void sub_free( subtitle * subs )




More information about the MPlayer-cvslog mailing list