# HG changeset patch # User henry # Date 1058714980 0 # Node ID 2d3f6a2996dac9cfb9daf1a32056d6a04fbb92e2 # Parent 498568fe7fd8dce8d0e91ccca8b991fe14490149 ASS support diff -r 498568fe7fd8 -r 2d3f6a2996da subreader.c --- a/subreader.c Sun Jul 20 15:01:00 2003 +0000 +++ b/subreader.c Sun Jul 20 15:29:40 2003 +0000 @@ -453,7 +453,13 @@ "%[^\n\r]", ¬hing, &hour1, &min1, &sec1, &hunsec1, &hour2, &min2, &sec2, &hunsec2, - line3) < 9); + line3) < 9 + && + sscanf (line, "Dialogue: %d,%d:%d:%d.%d,%d:%d:%d.%d," + "%[^\n\r]", ¬hing, + &hour1, &min1, &sec1, &hunsec1, + &hour2, &min2, &sec2, &hunsec2, + line3) < 9 ); line2=strchr(line3, ','); @@ -904,6 +910,8 @@ if (!memcmp(line, "Dialogue: Marked", 16)) {*uses_time=1; return SUB_SSA;} + if (!memcmp(line, "Dialogue: ", 10)) + {*uses_time=1; return SUB_SSA;} if (sscanf (line, "%d,%d,\"%c", &i, &i, (char *) &i) == 3) {*uses_time=0;return SUB_DUNNOWHAT;} if (sscanf (line, "FORMAT=%d", &i) == 1) @@ -1605,7 +1613,7 @@ char *tmp_fname_noext, *tmp_fname_trim, *tmp_fname_ext, *tmpresult; int len, pos, found, i, j; - char * sub_exts[] = { "utf", "utf8", "utf-8", "sub", "srt", "smi", "rt", "txt", "ssa", "aqt", "jss", NULL}; + char * sub_exts[] = { "utf", "utf8", "utf-8", "sub", "srt", "smi", "rt", "txt", "ssa", "aqt", "jss", "ass", NULL}; subfn *result; char **result2;