]> git.videolan.org Git - x264.git/commitdiff
Fix rc-lookahead in encoding options SEI in 2-pass with VBV
authorJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 18 May 2010 18:53:32 +0000 (11:53 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 18 May 2010 18:53:32 +0000 (11:53 -0700)
encoder/ratecontrol.c

index 7f18c7f783a47b7018d7700ed3b1e6539bc1bd9d..efa872cfbdda2e0e9a4418e5cce6e9b7c7f35685 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;
         }