# HG changeset patch # User arpi # Date 1017192131 0 # Node ID 1f068f4bb6e70996b6f83183d863baff35248ee5 # Parent 5882b38e1c2db3534621d0a39c76b1237c1a9dc3 vplayer sub fix by Arkadiusz Podgorski diff -r 5882b38e1c2d -r 1f068f4bb6e7 subreader.c --- a/subreader.c Wed Mar 27 00:54:45 2002 +0000 +++ b/subreader.c Wed Mar 27 01:22:11 2002 +0000 @@ -265,6 +265,7 @@ if (!(current->start = a1*360000+a2*6000+a3*100)) continue; + /* removed by wodzu p=line; // finds the body of the subtitle for (i=0; i<3; i++){ @@ -276,6 +277,11 @@ printf("SUB: Skipping incorrect subtitle line!\n"); continue; } + */ + // by wodzu: hey! this time we know what length it has! what is + // that magic for? it can't deal with space instead of third + // colon! look, what simple it can be: + p = &line[ plen ]; i=0; if (*p!='|') { @@ -489,6 +495,8 @@ {sub_uses_time=1; return SUB_SAMI;} if (sscanf (line, "%d:%d:%d:", &i, &i, &i )==3) {sub_uses_time=1;return SUB_VPLAYER;} + if (sscanf (line, "%d:%d:%d ", &i, &i, &i )==3) + {sub_uses_time=1;return SUB_VPLAYER;} //TODO: just checking if first line of sub starts with "<" is WAY // too weak test for RT // Please someone who knows the format of RT... FIX IT!!!