Fixed a bug with -dumpmpsub

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4881 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
laaz 2002-02-28 01:01:50 +00:00
parent e6230fffc2
commit 77f3ac91e6
1 changed files with 3 additions and 3 deletions

View File

@ -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 )