Mercurial > mplayer.hg
changeset 4880:e6cd9c81db9d
Fixed a bug with -dumpmpsub
author | laaz |
---|---|
date | Thu, 28 Feb 2002 01:01:50 +0000 |
parents | 2c8ed6b32373 |
children | f5f854541977 |
files | subreader.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 )