From: Jason Garrett-Glaser Date: Tue, 18 May 2010 18:53:32 +0000 (-0700) Subject: Fix rc-lookahead in encoding options SEI in 2-pass with VBV X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=ff0fede90cdac017457a77d026476a36d04cacd4;p=x264.git Fix rc-lookahead in encoding options SEI in 2-pass with VBV --- diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index 7f18c7f7..efa872cf 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -674,7 +674,7 @@ int x264_ratecontrol_new( x264_t *h ) return -1; } - if( h->param.rc.b_mb_tree && ( p = strstr( opts, "rc_lookahead=" ) ) && sscanf( p, "rc_lookahead=%d", &i ) ) + if( (h->param.rc.b_mb_tree || h->param.rc.i_vbv_buffer_size) && ( p = strstr( opts, "rc_lookahead=" ) ) && sscanf( p, "rc_lookahead=%d", &i ) ) h->param.rc.i_lookahead = i; }