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

Steve Lhomme git at videolan.org
Fri Jul 6 16:07:16 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 13:25:26 2018 +0200| [c3bbe926877f1d138b4e9b343b225d055d71c13c] | committer: Steve Lhomme

audiotrack: 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=c3bbe926877f1d138b4e9b343b225d055d71c13c
---

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

diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index d32c1a5904..58c08b8e7b 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -36,7 +36,7 @@
 #include "../video_output/android/utils.h"
 
 #define SMOOTHPOS_SAMPLE_COUNT 10
-#define SMOOTHPOS_INTERVAL_US INT64_C(30000) // 30ms
+#define SMOOTHPOS_INTERVAL_US VLC_TICK_FROM_MS(30) // 30ms
 
 #define AUDIOTIMESTAMP_INTERVAL_US VLC_TICK_FROM_MS(500) // 500ms
 



More information about the vlc-commits mailing list