detect microdvd with empty second frame.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4445 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eyck 2002-01-31 12:03:49 +00:00
parent 7b9afd3330
commit cff3abbe48
1 changed files with 2 additions and 0 deletions

View File

@ -479,6 +479,8 @@ int sub_autodetect (FILE *fd) {
if (sscanf (line, "{%d}{%d}", &i, &i)==2)
{sub_uses_time=0;return SUB_MICRODVD;}
if (sscanf (line, "{%d}{}", &i, &i)==1)
{sub_uses_time=0;return SUB_MICRODVD;}
if (sscanf (line, "%d:%d:%d.%d,%d:%d:%d.%d", &i, &i, &i, &i, &i, &i, &i, &i)==8)
{sub_uses_time=1;return SUB_SUBRIP;}
if (sscanf (line, "%d:%d:%d,%d --> %d:%d:%d,%d", &i, &i, &i, &i, &i, &i, &i, &i)==8)