[vlc-commits] asx: convert microseconds to ticks using VLC_TICK_FROM_US()

Steve Lhomme git at videolan.org
Wed Jul 4 17:49:33 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul  4 14:40:13 2018 +0200| [8722fde4a2a580984796df36a94ada5e7a1dac55] | committer: Steve Lhomme

asx: convert microseconds to ticks using VLC_TICK_FROM_US()

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

 modules/demux/playlist/asx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/playlist/asx.c b/modules/demux/playlist/asx.c
index 7e30438882..6e0bec1987 100644
--- a/modules/demux/playlist/asx.c
+++ b/modules/demux/playlist/asx.c
@@ -113,7 +113,7 @@ static bool ParseTime(xml_reader_t *p_xml_reader, vlc_tick_t* pi_result )
     }
     i_result = i_result * CLOCK_FREQ;
     if( i_subfractions != -1)
-        i_result += i_subresult;
+        i_result += VLC_TICK_FROM_US( i_subresult );
 
     free( psz_start );
     *pi_result = i_result;



More information about the vlc-commits mailing list