[vlc-devel] [PATCH 1/4] vlc_tick: from_samples: Use uint64_t for samplerate

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Oct 22 09:49:46 CEST 2020


---
 include/vlc_tick.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_tick.h b/include/vlc_tick.h
index 517eff1a44..1416be9034 100644
--- a/include/vlc_tick.h
+++ b/include/vlc_tick.h
@@ -97,7 +97,7 @@ static inline vlc_tick_t vlc_tick_rate_duration(float frame_rate)
 /*
  * samples<>vlc_tick_t
  */
-static inline vlc_tick_t vlc_tick_from_samples(int64_t samples, int samp_rate)
+static inline vlc_tick_t vlc_tick_from_samples(int64_t samples, uint64_t samp_rate)
 {
     return CLOCK_FREQ * samples / samp_rate;
 }
-- 
2.20.1



More information about the vlc-devel mailing list