summaryrefslogtreecommitdiffstats
path: root/subreader.c
diff options
context:
space:
mode:
authoreyck <eyck@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-31 12:03:49 +0000
committereyck <eyck@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-31 12:03:49 +0000
commitcff3abbe487ecb2f53a42b5547967bd2341e63db (patch)
treebcbeb8b6977fae53761dcc3762c5f4af86cf7e5c /subreader.c
parent7b9afd33307557cc91f7296d34b87c3c8ed05921 (diff)
downloadmpv-cff3abbe487ecb2f53a42b5547967bd2341e63db.tar.bz2
mpv-cff3abbe487ecb2f53a42b5547967bd2341e63db.tar.xz
detect microdvd with empty second frame.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4445 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.c')
-rw-r--r--subreader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/subreader.c b/subreader.c
index 1bbdea9206..7a71a68131 100644
--- a/subreader.c
+++ b/subreader.c
@@ -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)