Commit 453a8ee4 authored by Fiona Glaser's avatar Fiona Glaser
Browse files

Fix implicit CBR message to only print when in ABR mode

Also make it print outside of debug mode.
parent 46ff5086
...@@ -436,8 +436,16 @@ int x264_ratecontrol_new( x264_t *h ) ...@@ -436,8 +436,16 @@ int x264_ratecontrol_new( x264_t *h )
} }
else if( h->param.rc.i_vbv_max_bitrate == 0 ) else if( h->param.rc.i_vbv_max_bitrate == 0 )
{ {
x264_log( h, X264_LOG_DEBUG, "VBV maxrate unspecified, assuming CBR\n" ); if( h->param.rc.i_rc_method == X264_RC_ABR )
h->param.rc.i_vbv_max_bitrate = h->param.rc.i_bitrate; {
x264_log( h, X264_LOG_INFO, "VBV maxrate unspecified, assuming CBR\n" );
h->param.rc.i_vbv_max_bitrate = h->param.rc.i_bitrate;
}
else
{
x264_log( h, X264_LOG_INFO, "VBV bufsize set but maxrate unspecified, ignored\n" );
h->param.rc.i_vbv_buffer_size = 0;
}
} }
} }
if( h->param.rc.i_vbv_max_bitrate < h->param.rc.i_bitrate && if( h->param.rc.i_vbv_max_bitrate < h->param.rc.i_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