Commit 9143d5ad authored by Fiona Glaser's avatar Fiona Glaser
Browse files

Interface: if vbv-maxrate < bitrate, set bitrate = vbv-maxrate

This probably makes more sense to the user than setting vbv-maxrate = bitrate,
as before.
parent 83d35c7b
......@@ -696,7 +696,7 @@ static int x264_validate_parameters( x264_t *h, int b_open )
h->param.rc.i_rc_method == X264_RC_ABR )
{
x264_log( h, X264_LOG_WARNING, "max bitrate less than average bitrate, assuming CBR\n" );
h->param.rc.i_vbv_max_bitrate = h->param.rc.i_bitrate;
h->param.rc.i_bitrate = h->param.rc.i_vbv_max_bitrate;
}
}
else if( h->param.rc.i_vbv_max_bitrate )
......
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