# HG changeset patch # User laaz # Date 1002586700 0 # Node ID 885c9c802373224c1433f724f2b32cc3b35d8057 # Parent e06cabbd1a9bd3ee0291b746314b8142a9ff2e4f ssa worx fine. Testers needed :))) diff -r e06cabbd1a9b -r 885c9c802373 subreader.c --- a/subreader.c Mon Oct 08 22:26:14 2001 +0000 +++ b/subreader.c Tue Oct 09 00:18:20 2001 +0000 @@ -307,15 +307,21 @@ hour2, min2, sec2, hunsec2, nothing; char line[1000], - line2[1000]; + line3[1000], + *line2; do { if (!fgets (line, 1000, fd)) return NULL; } while (sscanf (line, "Dialogue: Marked=%d,%d:%d:%d.%d,%d:%d:%d.%d," - "*Default,%d,%d,%d,%d,,%[^\n\r]", ¬hing, &hour1, &min1, - &sec1, &hunsec1, - &hour2, &min2, &sec2, &hunsec2, ¬hing, - ¬hing, ¬hing, ¬hing, line2) < 14); - current->lines=1; + "%[^\n\r]", ¬hing, + &hour1, &min1, &sec1, &hunsec1, + &hour2, &min2, &sec2, &hunsec2, + line3) < 9); + line2=strstr(line3,",,"); + if (!line2) return NULL; + line2 ++; + line2 ++; + + current->lines=1; // ez a kiraly!!! current->start = 360000*hour1 + 6000*min1 + 100*sec1 + hunsec1; current->end = 360000*hour2 + 6000*min2 + 100*sec2 + hunsec2; current->text[0]=(char *) malloc(strlen(line2)+1);