# HG changeset patch # User laaz # Date 1014858110 0 # Node ID e6cd9c81db9ddfaa19efc171c9c6a4a5058da6f3 # Parent 2c8ed6b323738407298ea6d57a40635ac5840b98 Fixed a bug with -dumpmpsub diff -r 2c8ed6b32373 -r e6cd9c81db9d subreader.c --- a/subreader.c Thu Feb 28 00:57:47 2002 +0000 +++ b/subreader.c Thu Feb 28 01:01:50 2002 +0000 @@ -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 )