[vlc-devel] [PATCH 08/16] demux:asf: i_index_entry_time_interval is an msftime_t
Steve Lhomme
robux4 at ycbcr.xyz
Thu Jun 7 11:59:52 CEST 2018
---
modules/demux/asf/asf.c | 2 +-
modules/demux/asf/libasf.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index 230489613b..5671dd39f2 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -366,7 +366,7 @@ static int SeekIndex( demux_t *p_demux, mtime_t i_date, float f_pos )
p_index = ASF_FindObject( p_sys->p_root, &asf_object_simple_index_guid, 0 );
- uint64_t i_entry = p_sys->i_preroll_start * 10 / p_index->i_index_entry_time_interval;
+ uint64_t i_entry = MTIME_TO_MSFTIME(p_sys->i_preroll_start) / p_index->i_index_entry_time_interval;
if( i_entry >= p_index->i_index_entry_count )
{
msg_Warn( p_demux, "Incomplete index" );
diff --git a/modules/demux/asf/libasf.h b/modules/demux/asf/libasf.h
index 9404b06086..bec83df2dc 100644
--- a/modules/demux/asf/libasf.h
+++ b/modules/demux/asf/libasf.h
@@ -82,7 +82,7 @@ typedef struct
{
ASF_OBJECT_COMMON
guid_t i_file_id;
- uint64_t i_index_entry_time_interval;
+ msftime_t i_index_entry_time_interval;
uint32_t i_max_packet_count;
uint32_t i_index_entry_count;
--
2.17.0
More information about the vlc-devel
mailing list