changeset 4444:b09348223925

detect microdvd with empty second frame.
author eyck
date Thu, 31 Jan 2002 12:03:49 +0000
parents cf62fa252821
children 0af3438899bb
files subreader.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/subreader.c	Thu Jan 31 11:56:11 2002 +0000
+++ b/subreader.c	Thu Jan 31 12:03:49 2002 +0000
@@ -479,6 +479,8 @@
 
 	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)