[vlc-commits] mux:asf: convert the vlc_tick_t duration to msftime_t

Steve Lhomme git at videolan.org
Tue Sep 18 13:53:27 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 12 13:13:08 2018 +0200| [4b120cb478286ba7ecd1fac932c7a8a7be072476] | committer: Steve Lhomme

mux:asf: convert the vlc_tick_t duration to msftime_t

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

 modules/mux/asf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/mux/asf.c b/modules/mux/asf.c
index 38b6b81124..9b97f533d9 100644
--- a/modules/mux/asf.c
+++ b/modules/mux/asf.c
@@ -939,8 +939,8 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast )
                                 p_sys->i_packet_size ); /* file size */
     bo_addle_u64( &bo, 0 );                 /* creation date */
     bo_addle_u64( &bo, b_broadcast ? 0xffffffffLL : p_sys->i_packet_count );
-    bo_addle_u64( &bo, i_duration * 10 );   /* play duration (100ns) */
-    bo_addle_u64( &bo, i_duration * 10 );   /* send duration (100ns) */
+    bo_addle_u64( &bo, MSFTIME_FROM_VLC_TICK(i_duration) );   /* play duration (100ns) */
+    bo_addle_u64( &bo, MSFTIME_FROM_VLC_TICK(i_duration) );   /* send duration (100ns) */
     bo_addle_u64( &bo, p_sys->i_preroll_time ); /* preroll duration (ms) */
     bo_addle_u32( &bo, b_broadcast ? 0x01 : 0x02 /* seekable */ ); /* flags */
     bo_addle_u32( &bo, p_sys->i_packet_size );  /* packet size min */



More information about the vlc-commits mailing list