vlc | branch: master | Tristan Matthews <tma...@videolan.org> | Tue Jan  2 
17:38:01 2018 -0500| [7cf5d92e95471157acd5498eb6e9a3e3578832e6] | committer: 
Tristan Matthews

spatialaudio: use CLOCK_FREQ

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

 modules/audio_filter/channel_mixer/spatialaudio.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_filter/channel_mixer/spatialaudio.cpp 
b/modules/audio_filter/channel_mixer/spatialaudio.cpp
index 99babb0461..d80e24a3ce 100644
--- a/modules/audio_filter/channel_mixer/spatialaudio.cpp
+++ b/modules/audio_filter/channel_mixer/spatialaudio.cpp
@@ -185,7 +185,7 @@ static block_t *Mix( filter_t *p_filter, block_t *p_buf )
     else
         p_out_buf->i_pts = p_sys->i_inputPTS;
     p_out_buf->i_dts = p_out_buf->i_pts;
-    p_out_buf->i_length = p_out_buf->i_nb_samples * INT64_C(1000000) / 
p_filter->fmt_in.audio.i_rate;
+    p_out_buf->i_length = p_out_buf->i_nb_samples * CLOCK_FREQ / 
p_filter->fmt_in.audio.i_rate;
 
     float *p_dest = (float *)p_out_buf->p_buffer;
     const float *p_src = (float *)p_sys->inputSamples.data();

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to