[MPlayer-dev-eng] [BUG] sig11 in subreader.c

Oskar Liljeblad oskar at osk.mine.nu
Tue Dec 31 23:26:03 CET 2002


On Tuesday, December 31, 2002 at 11:13, Gabucino wrote:
> I wonder why the following subtitle file creates sig11 in subreader.
> 
> 1
> 00:00:00,000 --> 00:02:25,000
> <put a space here>
> EOF

This should fix it...

Oskar (oskar at osk.mine.nu)

diff -u -p subreader.c.v0 subreader.c
--- subreader.c.v0      2002-12-31 23:19:59.000000000 +0100
+++ subreader.c 2002-12-31 23:23:39.000000000 +0100
@@ -1215,8 +1215,8 @@ if(suboverlap_enabled){
     }
     adjust_subs_time(second, 6.0, fps, 1);     /* ~6 secs AST */
 
-    for (j = sub_orig - 1; j <= 0; --j) {
-       for (i = first[j].lines - 1; i <= 0; --i) {
+    for (j = sub_orig - 1; j >= 0; j--) {
+       for (i = first[j].lines - 1; i >= 0; i--) {
            free(first[j].text[i]);
        }
        free(&first[j]);



More information about the MPlayer-dev-eng mailing list