[vlc-commits] subsdelay: replace hardcoded CLOCK_FREQ fractions by VLC_TICK_FROM_MS()

Steve Lhomme git at videolan.org
Thu Jul 5 16:57:50 CEST 2018


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

subsdelay: replace hardcoded CLOCK_FREQ fractions by VLC_TICK_FROM_MS()

Easier to read and more explicit.

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

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

diff --git a/modules/spu/subsdelay.c b/modules/spu/subsdelay.c
index a80a5d5d39..33ac819329 100644
--- a/modules/spu/subsdelay.c
+++ b/modules/spu/subsdelay.c
@@ -762,7 +762,7 @@ static void SubsdelayEntryNewStopValueUpdated( subsdelay_heap_entry_t *p_entry )
 {
     if( !p_entry->b_update_stop )
     {
-        p_entry->p_subpic->i_stop = p_entry->i_new_stop - 100000; /* 0.1 sec less */
+        p_entry->p_subpic->i_stop = p_entry->i_new_stop - VLC_TICK_FROM_MS(100); /* 0.1 sec less */
     }
 }
 



More information about the vlc-commits mailing list