[vlc-commits] codec: webvtt: add missing SPU timestamp offset

Francois Cartegnie git at videolan.org
Wed Mar 24 14:02:38 UTC 2021


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 24 13:55:35 2021 +0100| [757939a703c2f95cd8e09495e9f6c9928f5af500] | committer: Francois Cartegnie

codec: webvtt: add missing SPU timestamp offset

fix #21945

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=757939a703c2f95cd8e09495e9f6c9928f5af500
---

 modules/codec/webvtt/subsvtt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/webvtt/subsvtt.c b/modules/codec/webvtt/subsvtt.c
index c61c0ee13f..688e63269e 100644
--- a/modules/codec/webvtt/subsvtt.c
+++ b/modules/codec/webvtt/subsvtt.c
@@ -1834,8 +1834,8 @@ static void RenderRegions( decoder_t *p_dec, vlc_tick_t i_nzstart, vlc_tick_t i_
 
     if( p_spu )
     {
-        p_spu->i_start = i_nzstart;
-        p_spu->i_stop = i_nzstop;
+        p_spu->i_start = VLC_TICK_0 + i_nzstart;
+        p_spu->i_stop = VLC_TICK_0 + i_nzstop;
         p_spu->b_ephemer  = true; /* !important */
         p_spu->b_absolute = false; /* can't be absolute as snap to lines can overlap ! */
 



More information about the vlc-commits mailing list