From 798542e595c9c26201247d58e3935f4bbcd9fd1c Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sun, 24 Apr 2011 01:26:26 +0000 Subject: [PATCH] Change scale factor for timestamp offset in vobsub commands Testing shows that this should be 1024 instead of 900. Thanks to Rodeo for validation and patch. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3954 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/decvobsub.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libhb/decvobsub.c b/libhb/decvobsub.c index fc4a9e24f..102d7f0ce 100644 --- a/libhb/decvobsub.c +++ b/libhb/decvobsub.c @@ -240,7 +240,7 @@ static void ParseControls( hb_work_object_t * w ) switch( command ) { case 0x00: // 0x00 - FSTA_DSP - Forced Start Display, no arguments - pv->pts_start = pv->pts + date * 900; + pv->pts_start = pv->pts + date * 1024; pv->pts_forced = 1; /* @@ -262,13 +262,13 @@ static void ParseControls( hb_work_object_t * w ) break; case 0x01: // 0x01 - STA_DSP - Start Display, no arguments - pv->pts_start = pv->pts + date * 900; + pv->pts_start = pv->pts + date * 1024; pv->pts_forced = 0; break; case 0x02: // 0x02 - STP_DSP - Stop Display, no arguments if(!pv->pts_stop) - pv->pts_stop = pv->pts + date * 900; + pv->pts_stop = pv->pts + date * 1024; break; case 0x03: // 0x03 - SET_COLOR - Set Colour indices @@ -345,7 +345,7 @@ static void ParseControls( hb_work_object_t * w ) // fading-out if( currAlpha < lastAlpha && !pv->pts_stop ) { - pv->pts_stop = pv->pts + date * 900; + pv->pts_stop = pv->pts + date * 1024; } i += 2; -- 2.40.0