mirror of https://github.com/mpv-player/mpv
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:
parent
7b9afd3330
commit
cff3abbe48
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue