Commit d5e8b734 authored by Antoine Cellerier's avatar Antoine Cellerier

allow subpel option in the 1 to 6 range for X264_BUILD >= 30 (r262)

parent 2ceb14b8
......@@ -186,9 +186,15 @@ vlc_module_begin();
SCENE_LONGTEXT, VLC_FALSE );
change_integer_range( -1, 100 );
add_integer( SOUT_CFG_PREFIX "subpel", 5, NULL, SUBPEL_TEXT,
#if X264_BUILD >= 30
add_integer( SOUT_CFG_PREFIX "subpel", 6, NULL, SUBPEL_TEXT,
SUBPEL_LONGTEXT, VLC_FALSE );
change_integer_range( 1, 5 );
change_integer_range( 1, 6 );
#else
add_integer( SOUT_CFG_PREFIX "subpel", 6, NULL, SUBPEL_TEXT,
SUBPEL_LONGTEXT, VLC_FALSE );
change_integer_range( 1, 6 );
#endif
vlc_module_end();
......@@ -350,7 +356,11 @@ static int Open ( vlc_object_t *p_this )
#if X264_BUILD >= 22
var_Get( p_enc, SOUT_CFG_PREFIX "subpel", &val );
#if X264_BUILD >= 30
if( val.i_int >= 1 && val.i_int <= 6 )
#else
if( val.i_int >= 1 && val.i_int <= 5 )
#endif
p_sys->param.analyse.i_subpel_refine = val.i_int;
#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