]> granicus.if.org Git - handbrake/commitdiff
Change scale factor for timestamp offset in vobsub commands
authorjstebbins <jstebbins.hb@gmail.com>
Sun, 24 Apr 2011 01:26:26 +0000 (01:26 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Sun, 24 Apr 2011 01:26:26 +0000 (01:26 +0000)
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

index fc4a9e24f238cd9205cce7b4671d46d9887b9d0f..102d7f0ce2e0d627ea391096a3c22b92e509ab64 100644 (file)
@@ -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;