[vlc-commits] demux:mkv clean the cue time conversion to vlc_tick_t

Steve Lhomme git at videolan.org
Tue Sep 18 14:07:58 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun  8 09:03:21 2018 +0200| [a195bb78b0e7e461923025cfbf2e0c066c0c4ece] | committer: Steve Lhomme

demux:mkv clean the cue time conversion to vlc_tick_t

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

 modules/demux/mkv/matroska_segment.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index b91d8f5937..5a54dda79f 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -134,7 +134,7 @@ void matroska_segment_c::LoadCues( KaxCues *cues )
                         b_invalid_cue = true;
                         break;
                     }
-                    cue_mk_time = static_cast<uint64>( *kct_ptr ) * i_timescale / INT64_C(1000);
+                    cue_mk_time = VLC_TICK_FROM_NS(static_cast<uint64>( *kct_ptr ) * i_timescale);
                 }
                 else if( MKV_IS_ID( el, KaxCueTrackPositions ) )
                 {



More information about the vlc-commits mailing list