mirror of https://github.com/mpv-player/mpv
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:
parent
e6230fffc2
commit
77f3ac91e6
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue