]> git.sesse.net Git - x264/commitdiff
Fix rc-lookahead in encoding options SEI in 2-pass with VBV
authorFiona Glaser <fiona@x264.com>
Tue, 18 May 2010 18:53:32 +0000 (11:53 -0700)
committerFiona Glaser <fiona@x264.com>
Tue, 18 May 2010 18:53:32 +0000 (11:53 -0700)
encoder/ratecontrol.c

index 27975aa7b6265856012d3642e518394570e2f78a..ce0399d74a6053b858984608ec978f4fef821de3 100644 (file)
@@ -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;
         }