diff options
author | laaz <laaz@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-05-31 02:07:34 +0000 |
---|---|---|
committer | laaz <laaz@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-05-31 02:07:34 +0000 |
commit | 4a012ce8b164dddc22e55b9057f9c43a058f5ac0 (patch) | |
tree | ddf8434558efe00a4d8346ef6c9e4cb692bd7653 /subreader.c | |
parent | d50afe4dd6c3181c568d5982e628040a39df9bfe (diff) | |
download | mpv-4a012ce8b164dddc22e55b9057f9c43a058f5ac0.tar.bz2 mpv-4a012ce8b164dddc22e55b9057f9c43a058f5ac0.tar.xz |
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
Diffstat (limited to 'subreader.c')
-rw-r--r-- | subreader.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/subreader.c b/subreader.c index aa8760a009..f6b1ff65db 100644 --- a/subreader.c +++ b/subreader.c @@ -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;} } |