[vlc-commits] aribsub: convert microseconds to ticks using VLC_TICK_FROM_US()

Steve Lhomme git at videolan.org
Wed Jul 4 17:49:31 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul  4 14:25:33 2018 +0200| [343f0220472700c32fa503b27429fc586a75c1cb] | committer: Steve Lhomme

aribsub: convert microseconds to ticks using VLC_TICK_FROM_US()

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

 modules/codec/arib/aribsub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/arib/aribsub.c b/modules/codec/arib/aribsub.c
index 1cf978b9c7..fa44a9ba78 100644
--- a/modules/codec/arib/aribsub.c
+++ b/modules/codec/arib/aribsub.c
@@ -264,7 +264,7 @@ static subpicture_t *render( decoder_t *p_dec, arib_parser_t *p_parser,
     }
 
     p_spu->i_start = p_block->i_pts;
-    p_spu->i_stop = p_block->i_pts + arib_decoder_get_time( p_arib_decoder );
+    p_spu->i_stop = p_block->i_pts + VLC_TICK_FROM_US(arib_decoder_get_time( p_arib_decoder ));
     p_spu->b_ephemer  = (p_spu->i_start == p_spu->i_stop);
     p_spu->b_absolute = true;
 



More information about the vlc-commits mailing list