Commit 0903720e authored by Christophe Mutricy's avatar Christophe Mutricy

Backport [17060]: x264 API change

parent 4811d2d9
......@@ -911,7 +911,11 @@ static int Open ( vlc_object_t *p_this )
var_Get( p_enc, SOUT_CFG_PREFIX "crf", &val );
if( val.i_int > 0 && val.i_int <= 51 )
{
#if X264_BUILD >= 54
p_sys->param.rc.f_rf_constant = val.i_int;
#else
p_sys->param.rc.i_rf_constant = val.i_int;
#endif
#if X264_BUILD >= 48
p_sys->param.rc.i_rc_method = X264_RC_CRF;
#endif
......
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