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

Francois Cartegnie git at videolan.org
Wed Mar 24 14:33:09 UTC 2021


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

codec: webvtt: add missing SPU timestamp offset

fix #21945

(cherry picked from commit 757939a703c2f95cd8e09495e9f6c9928f5af500)

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

 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 1afe8fe4cf..9c55612677 100644
--- a/modules/codec/webvtt/subsvtt.c
+++ b/modules/codec/webvtt/subsvtt.c
@@ -1782,8 +1782,8 @@ static void RenderRegions( decoder_t *p_dec, mtime_t i_nzstart, mtime_t i_nzstop
 
     if( p_spu )
     {
-        p_spu->i_start = i_nzstart;
-        p_spu->i_stop = i_nzstop;
+        p_spu->i_start = VLC_TS_0 + i_nzstart;
+        p_spu->i_stop = VLC_TS_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