0f4805b64e
bridge the gap between mplayer/gocr and full text subtitle extraction, some manpages, and a sample shell script that can perform subtitle extraction.
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
$OpenBSD: patch-srttool_c,v 1.1.1.1 2007/01/22 13:55:42 espie Exp $
|
|
--- srttool.c.orig Mon Jan 22 14:47:45 2007
|
|
+++ srttool.c Mon Jan 22 14:48:32 2007
|
|
@@ -70,8 +70,7 @@ usage (void)
|
|
fprintf (stderr,
|
|
"\t -w Remove leading white space in text lines\n");
|
|
fprintf (stderr,
|
|
- "\t -e <seconds> 'Expand' the subtitle hour by <seconds>\n"
|
|
- "\t (valid values are -60.0<=x<=+60.0 seconds)\n");
|
|
+ "\t -e <seconds> 'Expand' the subtitle hour by <seconds>\n");
|
|
fprintf (stderr, "\t Example: \n");
|
|
fprintf (stderr, "\t Adjust the subtitle timing by -2.3 seconds. \n");
|
|
fprintf (stderr,
|
|
@@ -525,12 +524,6 @@ main (int argc, char **argv)
|
|
if (n != 1)
|
|
{
|
|
fprintf (stderr, "no time specified with option -e\n");
|
|
- exit (EXIT_FAILURE);
|
|
- }
|
|
- // complain about an adjustment of more than 60 seconds
|
|
- if (fabs (hour_expansion > 60))
|
|
- {
|
|
- fprintf (stderr, "Parameter to option -e to large.\n");
|
|
exit (EXIT_FAILURE);
|
|
}
|
|
// calculate the resulting scaling factor
|