From 77f3ac91e69c96d9834bce45a1dd8501bbfd8c59 Mon Sep 17 00:00:00 2001 From: laaz Date: Thu, 28 Feb 2002 01:01:50 +0000 Subject: [PATCH] Fixed a bug with -dumpmpsub git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4881 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subreader.c b/subreader.c index fd9cafc794..d302874fa7 100644 --- a/subreader.c +++ b/subreader.c @@ -815,8 +815,8 @@ void dump_mpsub(subtitle* subs, float fps){ 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 @@ void dump_mpsub(subtitle* subs, float fps){ 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 )