Commit eae71874 authored by Ilkka Ollakka's avatar Ilkka Ollakka Committed by Jean-Baptiste Kempf

x264: make sure b-pyramid ain't set other than high-profile

Reported by Lotesdelere
parent 9c907b9b
......@@ -1172,12 +1172,18 @@ static int Open ( vlc_object_t *p_this )
p_sys->param.i_bframe = 0;
#if X264_BUILD >= 79
p_sys->param.analyse.i_weighted_pred = X264_WEIGHTP_NONE;
#endif
#if X264_BUILD >= 78
p_sys->param.i_bframe_pyramid = X264_B_PYRAMID_NONE;
#endif
}
else if (!strcasecmp( psz_val, "main" ) )
{
msg_Dbg( p_enc, "Limiting to main-profile");
p_sys->param.analyse.b_transform_8x8 = 0;
#if X264_BUILD >= 78
p_sys->param.i_bframe_pyramid = X264_B_PYRAMID_NONE;
#endif
}
/* high profile don't restrict stuff*/
}
......
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