[vlc-commits] sout:vod: explicitly convert ticks to ms

Steve Lhomme git at videolan.org
Tue Sep 25 12:19:51 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Sep 25 10:02:30 2018 +0200| [3a1da7167be91e0ff360530b5626192a2160fc21] | committer: Steve Lhomme

sout:vod: explicitly convert ticks to ms

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

 modules/stream_out/vod.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/vod.c b/modules/stream_out/vod.c
index a7ebd8ebaa..e1b6cbd4ce 100644
--- a/modules/stream_out/vod.c
+++ b/modules/stream_out/vod.c
@@ -414,7 +414,7 @@ char *SDPGenerateVoD( const vod_media_t *p_media, const char *rtsp_url )
 
     if( p_media->i_length > 0 )
     {
-        lldiv_t d = lldiv( p_media->i_length / 1000, 1000 );
+        lldiv_t d = lldiv( MS_FROM_VLC_TICK(p_media->i_length), 1000 );
         sdp_AddAttribute( &sdp, "range"," npt=0-%lld.%03u", d.quot,
                           (unsigned)d.rem );
     }



More information about the vlc-commits mailing list