corrected strcmp() bug, now it works again with every subs (it was broken)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@914 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
laaz 2001-05-31 02:07:34 +00:00
parent d50afe4dd6
commit 4a012ce8b1
1 changed files with 4 additions and 2 deletions

View File

@ -318,8 +318,10 @@ int sub_autodetect (FILE *fd) {
if (sscanf (line, "%d:%d:%d:", &i, &i, &i )==3)
{sub_uses_time=1;return 4;}
//TODO: just checking if first line of sub starts with "<" is WAY
// to weak test for RT
if (strcmp("<",line))
// 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
if ( *line == '<' )
{sub_uses_time=1;return 5;}
}