]> git.sesse.net Git - x264/commitdiff
Fix disabling of mbtree when using 2pass encoding and zones
authorAnton Mitrofanov <BugMaster@narod.ru>
Tue, 3 Apr 2012 17:46:52 +0000 (21:46 +0400)
committerFiona Glaser <fiona@x264.com>
Mon, 23 Apr 2012 20:28:44 +0000 (13:28 -0700)
encoder/encoder.c

index e193e559bbde972c41302d6c7ebe84dc39b02c6b..140faa5a86db9f56ae9e6e0263940dcbd1a06fc0 100644 (file)
@@ -732,7 +732,7 @@ static int x264_validate_parameters( x264_t *h, int b_open )
         x264_log( h, X264_LOG_WARNING, "lookaheadless mb-tree requires intra refresh or infinite keyint\n" );
         h->param.rc.b_mb_tree = 0;
     }
-    if( h->param.rc.b_stat_read )
+    if( b_open && h->param.rc.b_stat_read )
         h->param.rc.i_lookahead = 0;
 #if HAVE_THREAD
     if( h->param.i_sync_lookahead < 0 )