[vlc-commits] commit: x264: preset/tune are in from X264_BUILD >= 86 (Ilkka Ollakka )

git at videolan.org git at videolan.org
Sun May 16 14:31:06 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun May 16 15:30:47 2010 +0300| [27e306df96c937068816685406593e980a53a585] | committer: Ilkka Ollakka 

x264: preset/tune are in from X264_BUILD >= 86

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=27e306df96c937068816685406593e980a53a585
---

 modules/codec/x264.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 96b5f2c..f10f4c6 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -660,12 +660,10 @@ vlc_module_begin ()
     add_string( SOUT_CFG_PREFIX "stats", "x264_2pass.log", NULL, STATS_TEXT,
                 STATS_LONGTEXT, false )
 
-#if X264_BUILD >= 93
     add_string( SOUT_CFG_PREFIX "preset", NULL , NULL, PRESET_TEXT , PRESET_TEXT, false )
         change_string_list( x264_preset_names, x264_preset_names, 0 );
     add_string( SOUT_CFG_PREFIX "tune", NULL , NULL, TUNE_TEXT, TUNE_TEXT, false )
         change_string_list( x264_tune_names, x264_tune_names, 0 );
-#endif
 
 vlc_module_end ()
 
@@ -742,7 +740,6 @@ static int  Open ( vlc_object_t *p_this )
     p_sys->psz_stat_name = NULL;
 
     x264_param_default( &p_sys->param );
-#if X264_BUILD >= 93
     char *psz_preset = var_GetString( p_enc, SOUT_CFG_PREFIX  "preset" );
     char *psz_tune = var_GetString( p_enc, SOUT_CFG_PREFIX  "tune" );
     if( *psz_preset == '\0' )
@@ -753,7 +750,6 @@ static int  Open ( vlc_object_t *p_this )
     x264_param_default_preset( &p_sys->param, psz_preset, psz_tune );
     free( psz_preset );
     free( psz_tune );
-#endif
     p_sys->param.i_width  = p_enc->fmt_in.video.i_width;
     p_sys->param.i_height = p_enc->fmt_in.video.i_height;
 



More information about the vlc-commits mailing list