[vlc-commits] [Git][videolan/vlc][master] kate: use secf_from_vlc_tick() to convert ticks to floats

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Jan 27 10:03:26 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
4922161d by Steve Lhomme at 2025-01-27T09:35:16+00:00
kate: use secf_from_vlc_tick() to convert ticks to floats

- - - - -


1 changed file:

- modules/codec/kate.c


Changes:

=====================================
modules/codec/kate.c
=====================================
@@ -808,7 +808,7 @@ static void TigerUpdateSubpicture( subpicture_t *p_subpic,
     const video_format_t *p_fmt_dst = cfg->video_dst;
     plane_t *p_plane;
     /* time in seconds from the start of the stream */
-    kate_float t = (p_spusys->i_start + cfg->pts - p_subpic->i_start ) / 1000000.0f;
+    kate_float t = secf_from_vlc_tick( p_spusys->i_start + cfg->pts - p_subpic->i_start );
 
     bool new_regions = false;
     if( !video_format_IsSimilar(cfg->prev_src, p_fmt_src) ||



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4922161d1ff4b09bea0324062a4637f384a4773b

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4922161d1ff4b09bea0324062a4637f384a4773b
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list