summaryrefslogtreecommitdiffstats
path: root/libhb/decsub.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/decsub.c')
-rw-r--r--libhb/decsub.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libhb/decsub.c b/libhb/decsub.c
index 72f742bd9..de844a1c1 100644
--- a/libhb/decsub.c
+++ b/libhb/decsub.c
@@ -222,6 +222,9 @@ static void ParseControls( hb_work_object_t * w )
int command;
int date, next;
+ w->pts_start = 0;
+ w->pts_stop = 0;
+
for( i = w->size_rle; ; )
{
date = ( w->buf[i] << 8 ) | w->buf[i+1]; i += 2;
@@ -300,6 +303,12 @@ static void ParseControls( hb_work_object_t * w )
}
i = next;
}
+
+ if( !w->pts_stop )
+ {
+ /* Show it for 3 seconds */
+ w->pts_stop = w->pts_start + 3 * 90000;
+ }
}
/***********************************************************************