Commit 3d752da0 authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/x264.c: relaxed the version requirement for subpel and bpyramid.

parent 6dd481eb
...@@ -283,7 +283,7 @@ static int Open ( vlc_object_t *p_this ) ...@@ -283,7 +283,7 @@ static int Open ( vlc_object_t *p_this )
var_Get( p_enc, SOUT_CFG_PREFIX "bframes", &val ); var_Get( p_enc, SOUT_CFG_PREFIX "bframes", &val );
if( val.i_int >= 0 && val.i_int <= 16 ) p_sys->param.i_bframe = val.i_int; if( val.i_int >= 0 && val.i_int <= 16 ) p_sys->param.i_bframe = val.i_int;
#if X264_BUILD >= 23 #if X264_BUILD >= 22
var_Get( p_enc, SOUT_CFG_PREFIX "bpyramid", &val ); var_Get( p_enc, SOUT_CFG_PREFIX "bpyramid", &val );
p_sys->param.b_bframe_pyramid = val.b_bool; p_sys->param.b_bframe_pyramid = val.b_bool;
#endif #endif
...@@ -298,7 +298,7 @@ static int Open ( vlc_object_t *p_this ) ...@@ -298,7 +298,7 @@ static int Open ( vlc_object_t *p_this )
p_sys->param.i_scenecut_threshold = val.i_int; p_sys->param.i_scenecut_threshold = val.i_int;
#endif #endif
#if X264_BUILD >= 23 #if X264_BUILD >= 22
var_Get( p_enc, SOUT_CFG_PREFIX "subpel", &val ); var_Get( p_enc, SOUT_CFG_PREFIX "subpel", &val );
if( val.i_int >= 1 && val.i_int <= 5 ) if( val.i_int >= 1 && val.i_int <= 5 )
p_sys->param.analyse.i_subpel_refine = val.i_int; p_sys->param.analyse.i_subpel_refine = val.i_int;
......
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