[vlc-commits] hds: use CLOCK_FREQ to compute the frame end date

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 17:22:12 2018 +0200| [45b9bd0083d816cf16078daa1e617ec144cdc622] | committer: Steve Lhomme

hds: use CLOCK_FREQ to compute the frame end date

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

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

diff --git a/modules/stream_filter/hds/hds.c b/modules/stream_filter/hds/hds.c
index b29dc89a2b..d78163c4fa 100644
--- a/modules/stream_filter/hds/hds.c
+++ b/modules/stream_filter/hds/hds.c
@@ -1167,7 +1167,7 @@ static void* live_thread( void* p )
             vlc_stream_Delete( download_stream );
         }
 
-        vlc_tick_wait( last_dl_start_time + ( ((int64_t)hds_stream->fragment_runs[hds_stream->fragment_run_count-1].fragment_duration) * 1000000LL) / ((int64_t)hds_stream->afrt_timescale) );
+        vlc_tick_wait( last_dl_start_time + (CLOCK_FREQ * hds_stream->fragment_runs[hds_stream->fragment_run_count-1].fragment_duration) / hds_stream->afrt_timescale);
 
 
     }



More information about the vlc-commits mailing list