[vlc-commits] x264.c: use x264_param_apply_profile
Ilkka Ollakka
git at videolan.org
Thu Jan 5 09:25:19 CET 2012
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu Jan 5 12:53:30 2012 +0200| [1f62e75db43063d4fc1a793ec3ba1bdf1b6fac94] | committer: Ilkka Ollakka
x264.c: use x264_param_apply_profile
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f62e75db43063d4fc1a793ec3ba1bdf1b6fac94
---
modules/codec/x264.c | 18 +-----------------
1 files changed, 1 insertions(+), 17 deletions(-)
diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 0149cb6..60cd3b2 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -1164,23 +1164,7 @@ static int Open ( vlc_object_t *p_this )
* settings, and apply those*/
psz_val = var_GetString( p_enc, SOUT_CFG_PREFIX "profile" );
if( psz_val )
- {
- if( !strcasecmp( psz_val, "baseline" ) )
- {
- msg_Dbg( p_enc, "Limiting to baseline profile");
- p_sys->param.analyse.b_transform_8x8 = 0;
- p_sys->param.b_cabac = 0;
- p_sys->param.i_bframe = 0;
- p_sys->param.analyse.i_weighted_pred = X264_WEIGHTP_NONE;
- p_sys->param.i_bframe_pyramid = X264_B_PYRAMID_NONE;
- }
- else if (!strcasecmp( psz_val, "main" ) )
- {
- msg_Dbg( p_enc, "Limiting to main-profile");
- p_sys->param.analyse.b_transform_8x8 = 0;
- }
- /* high profile don't restrict stuff*/
- }
+ x264_param_apply_profile( &p_sys->param, psz_val );
free( psz_val );
More information about the vlc-commits
mailing list