]> git.videolan.org Git - x264.git/commitdiff
Fix printing of SEI header with VBV + ABR
authorJason Garrett-Glaser <darkshikari@gmail.com>
Fri, 2 Apr 2010 10:09:48 +0000 (03:09 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 5 Apr 2010 20:52:58 +0000 (13:52 -0700)
SEI header shouldn't say CBR unless bitrate == maxrate.

common/common.c

index 6038c511f8d29c89a61da5f6e8e57c0eec4d32dc..2d166af97f2743dc7207f9263eb70d41d30f0042 100644 (file)
@@ -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 )
     {