[vlc-commits] demux:mkv: read the codec delay as an vlc_tick_t
Steve Lhomme
git at videolan.org
Tue Sep 18 13:52:59 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun 8 08:35:36 2018 +0200| [0a267a284ab48216b870f97dd2cb67dfccbe2602] | committer: Steve Lhomme
demux:mkv: read the codec delay as an vlc_tick_t
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0a267a284ab48216b870f97dd2cb67dfccbe2602
---
modules/demux/mkv/matroska_segment_parse.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index a2d2bf5c84..17ee1b7e60 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -388,7 +388,7 @@ void matroska_segment_c::ParseTrackEntry( const KaxTrackEntry *m )
#if LIBMATROSKA_VERSION >= 0x010401
E_CASE( KaxCodecDelay, codecdelay )
{
- vars.tk->i_codec_delay = static_cast<uint64_t>( codecdelay ) / 1000;
+ vars.tk->i_codec_delay = VLC_TICK_FROM_NS(static_cast<uint64_t>( codecdelay ));
msg_Dbg( vars.p_demuxer, "| | | + Track Codec Delay =%" PRIu64,
vars.tk->i_codec_delay );
}
More information about the vlc-commits
mailing list