From f733870f3212e8513ed0dea2b9b4f26b59de5f24 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 17 Oct 2010 16:00:04 +0000 Subject: subreader: More strict autodetection of RT subtitle format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Clément Bœsch [ubitux gmail com]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32507 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/subreader.c b/subreader.c index dcadc3083e..0db3198ca6 100644 --- a/subreader.c +++ b/subreader.c @@ -1057,13 +1057,8 @@ static int sub_autodetect (stream_t* st, int *uses_time, int utf16) { {*uses_time=1;return SUB_VPLAYER;} if (sscanf (line, "%d:%d:%d ", &i, &i, &i )==3) {*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!!! - // It may conflict with other sub formats in the future (actually it doesn't) - if ( *line == '<' ) + if (!strncasecmp(line, "