Commit b5a3966f authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

audiotrack: use VLC_CLIP

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent eadf3063
...@@ -643,10 +643,7 @@ JNIThread_Configure( JNIEnv *env, audio_output_t *p_aout ) ...@@ -643,10 +643,7 @@ JNIThread_Configure( JNIEnv *env, audio_output_t *p_aout )
audio_sample_format_t fmt = p_sys->fmt; audio_sample_format_t fmt = p_sys->fmt;
/* 4000 <= frequency <= 48000 */ /* 4000 <= frequency <= 48000 */
if( fmt.i_rate < 4000 ) fmt.i_rate = VLC_CLIP( fmt.i_rate, 4000, 48000 );
fmt.i_rate = 4000;
if( fmt.i_rate > 48000 )
fmt.i_rate = 48000;
/* We can only accept U8, S16N, FL32 */ /* We can only accept U8, S16N, FL32 */
switch( fmt.i_format ) switch( fmt.i_format )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment