Commit 1f7257eb authored by Vincent Penquerc'h's avatar Vincent Penquerc'h Committed by Rémi Denis-Courmont

fix build with (at least) libspeex 1.1.12

Signed-off-by: default avatarRémi Denis-Courmont <rdenis@simphalempin.com>
parent 2bdbd381
...@@ -988,7 +988,11 @@ static int OpenEncoder( vlc_object_t *p_this ) ...@@ -988,7 +988,11 @@ static int OpenEncoder( vlc_object_t *p_this )
i_tmp = var_GetInteger( p_enc, ENC_CFG_PREFIX "max-bitrate" ); i_tmp = var_GetInteger( p_enc, ENC_CFG_PREFIX "max-bitrate" );
if( i_tmp > 0 ) if( i_tmp > 0 )
#ifdef SPEEX_SET_VBR_MAX_BITRATE
speex_encoder_ctl( p_sys->p_state, SPEEX_SET_VBR_MAX_BITRATE, &i_tmp ); speex_encoder_ctl( p_sys->p_state, SPEEX_SET_VBR_MAX_BITRATE, &i_tmp );
#else
msg_Dbg( p_enc, "max-bitrate cannot be set in this version of libspeex");
#endif
} }
i_tmp = var_GetBool( p_enc, ENC_CFG_PREFIX "dtx" ) ? 1 : 0; i_tmp = var_GetBool( p_enc, ENC_CFG_PREFIX "dtx" ) ? 1 : 0;
......
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