From: Jason Garrett-Glaser Date: Fri, 2 Apr 2010 10:09:48 +0000 (-0700) Subject: Fix printing of SEI header with VBV + ABR X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=9d08bf433190ac11e2707ac456382f3996773909;p=x264.git Fix printing of SEI header with VBV + ABR SEI header shouldn't say CBR unless bitrate == maxrate. --- diff --git a/common/common.c b/common/common.c index 6038c511..2d166af9 100644 --- a/common/common.c +++ b/common/common.c @@ -1237,7 +1237,7 @@ char *x264_param2string( x264_param_t *p, int b_res ) s += sprintf( s, " rc_lookahead=%d", p->rc.i_lookahead ); s += sprintf( s, " rc=%s mbtree=%d", p->rc.i_rc_method == X264_RC_ABR ? - ( p->rc.b_stat_read ? "2pass" : p->rc.i_vbv_buffer_size ? "cbr" : "abr" ) + ( p->rc.b_stat_read ? "2pass" : p->rc.i_vbv_buffer_size == p->rc.i_bitrate ? "cbr" : "abr" ) : p->rc.i_rc_method == X264_RC_CRF ? "crf" : "cqp", p->rc.b_mb_tree ); if( p->rc.i_rc_method == X264_RC_ABR || p->rc.i_rc_method == X264_RC_CRF ) {