[vlc-commits] rtsp: process the SPD range from vlc_tick_t to milliseconds explicitly

Steve Lhomme git at videolan.org
Fri Jul 6 09:20:52 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 12 12:11:28 2018 +0200| [648f998e30f3bb0f0d2b0497b32b59a19865d944] | committer: Steve Lhomme

rtsp: process the SPD range from vlc_tick_t to milliseconds explicitly

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

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

diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index 1bd5581152..06b280fc60 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -1536,7 +1536,7 @@ static char *SDPGenerate( const vod_media_t *p_media, httpd_client_t *cl )
 
     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), VLC_TICK_FROM_MS(1) );
         sdp_AddAttribute( &sdp, "range","npt=0-%lld.%03u", d.quot,
                           (unsigned)d.rem );
     }



More information about the vlc-commits mailing list