Commit 3d353c9e authored by Loren Merritt's avatar Loren Merritt

fix the crf option to reflect x264's API change in its revision 537

parent afee2b7a
...@@ -795,7 +795,12 @@ static int Open ( vlc_object_t *p_this ) ...@@ -795,7 +795,12 @@ static int Open ( vlc_object_t *p_this )
#if X264_BUILD >= 37 #if X264_BUILD >= 37
var_Get( p_enc, SOUT_CFG_PREFIX "crf", &val ); var_Get( p_enc, SOUT_CFG_PREFIX "crf", &val );
if( val.i_int >= 0 && val.i_int <= 51 ) /* crf != 0 overrides qp */ if( val.i_int >= 0 && val.i_int <= 51 ) /* crf != 0 overrides qp */
{
p_sys->param.rc.i_rf_constant = val.i_int; p_sys->param.rc.i_rf_constant = val.i_int;
#if X264_BUILD >= 48
p_sys->param.rc.i_rc_method = X264_RC_CRF;
#endif
}
#endif #endif
#if X264_BUILD >= 39 #if X264_BUILD >= 39
......
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