mirror of https://github.com/mpv-player/mpv
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:
parent
d50afe4dd6
commit
4a012ce8b1
|
@ -318,8 +318,10 @@ int sub_autodetect (FILE *fd) {
|
||||||
if (sscanf (line, "%d:%d:%d:", &i, &i, &i )==3)
|
if (sscanf (line, "%d:%d:%d:", &i, &i, &i )==3)
|
||||||
{sub_uses_time=1;return 4;}
|
{sub_uses_time=1;return 4;}
|
||||||
//TODO: just checking if first line of sub starts with "<" is WAY
|
//TODO: just checking if first line of sub starts with "<" is WAY
|
||||||
// to weak test for RT
|
// too weak test for RT
|
||||||
if (strcmp("<",line))
|
// 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;}
|
{sub_uses_time=1;return 5;}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue