Commit bb134f02 authored by Ilkka Ollakka's avatar Ilkka Ollakka

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

(cherry picked from commit cce5f9e2)
parent 7bf82d91
......@@ -874,6 +874,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