[vlc-commits] audiotrack: fix multiplication cast

Thomas Guillem git at videolan.org
Tue Jun 9 10:44:05 CEST 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jun  9 10:19:57 2015 +0200| [0d9875366674cda470df94def0c0f28e04b394c6] | committer: Thomas Guillem

audiotrack: fix multiplication cast

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

 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 1c9f903..34e65c4 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -809,7 +809,7 @@ AudioTrack_New( JNIEnv *env, audio_output_t *p_aout,
         i_clipped_time = VLC_CLIP( i_time, MIN_AUDIOTRACK_BUFFER_US,
                          MAX_AUDIOTRACK_BUFFER_US );
         if( i_clipped_time != i_time )
-            i_size = i_rate * i_clipped_time * i_bytes_per_frame / CLOCK_FREQ;
+            i_size = (int)i_rate * i_clipped_time * i_bytes_per_frame / CLOCK_FREQ;
     }
 
     /* create AudioTrack object */



More information about the vlc-commits mailing list