[x264-devel] commit: Fix printing of SEI header with VBV + ABR (Jason Garrett-Glaser )
git at videolan.org
git at videolan.org
Tue Apr 6 21:48:29 CEST 2010
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Fri Apr 2 03:09:48 2010 -0700| [9d08bf433190ac11e2707ac456382f3996773909] | committer: Jason Garrett-Glaser
Fix printing of SEI header with VBV + ABR
SEI header shouldn't say CBR unless bitrate == maxrate.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=9d08bf433190ac11e2707ac456382f3996773909
---
common/common.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/common.c b/common/common.c
index 6038c51..2d166af 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 )
{
More information about the x264-devel
mailing list