Commit cce5f9e2 authored by Ilkka Ollakka's avatar Ilkka Ollakka

x264.c: set vbv max bitrate to bitrate if doing cbr

parent 6d5cb64b
......@@ -872,6 +872,11 @@ static int Open ( vlc_object_t *p_this )
/* max bitrate = average bitrate -> CBR */
var_Get( p_enc, SOUT_CFG_PREFIX "vbv-maxrate", &val );
#if X264_BUILD >= 48
if( !val.i_int && p_sys->param.rc.i_rc_method == X264_RC_ABR )
p_sys->param.rc.i_vbv_max_bitrate = p_sys->param.rc.i_bitrate;
else
#endif
p_sys->param.rc.i_vbv_max_bitrate = val.i_int;
#else
......
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