[x264-devel] Fix disabling of mbtree when using 2pass encoding and zones

Anton Mitrofanov git at videolan.org
Wed Apr 25 00:17:09 CEST 2012


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Tue Apr  3 21:46:52 2012 +0400| [8ca49cc5c40813d8b98544989eb684e167b06aa0] | committer: Jason Garrett-Glaser

Fix disabling of mbtree when using 2pass encoding and zones

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=8ca49cc5c40813d8b98544989eb684e167b06aa0
---

 encoder/encoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/encoder/encoder.c b/encoder/encoder.c
index e9ea971..eff188d 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -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 )



More information about the x264-devel mailing list