summaryrefslogtreecommitdiffstats
path: root/libhb/decsub.c
diff options
context:
space:
mode:
authortiter <[email protected]>2006-02-22 19:32:43 +0000
committertiter <[email protected]>2006-02-22 19:32:43 +0000
commit59fdec6de410480ca0b9eb7bb9b7e37a6ddc1384 (patch)
tree1c8a9cff6be5a3ac200dc671c3ab029c69299341 /libhb/decsub.c
parentf2d6457b5e4951bf5cc8d4d005e5ef82b5e6eda9 (diff)
Fix for missing subtitles
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@28 b64f7644-9d1e-0410-96f1-a4d463321fa5
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;
+ }
}
/***********************************************************************