summaryrefslogtreecommitdiffstats
path: root/libhb/decvobsub.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-04-24 01:26:26 +0000
committerjstebbins <[email protected]>2011-04-24 01:26:26 +0000
commit798542e595c9c26201247d58e3935f4bbcd9fd1c (patch)
tree98b54c8ee74e1f35fef8ceb4ca5d5943b0e9a8e8 /libhb/decvobsub.c
parentac7beb619fbf6cdc0d5b28fbacb4baa37b59c56c (diff)
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
Diffstat (limited to 'libhb/decvobsub.c')
-rw-r--r--libhb/decvobsub.c8
1 files 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;