From: Jason Garrett-Glaser Date: Thu, 4 Feb 2010 04:27:57 +0000 (-0800) Subject: Fix 2-pass ratecontrol continuation in case of missing statsfile X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=bb0990813c7fb047a322c5d463cde5ae8e22c756;p=x264.git Fix 2-pass ratecontrol continuation in case of missing statsfile Didn't work properly if MB-tree was enabled. --- diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index 52196e78..e314ba22 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -1280,6 +1280,7 @@ int x264_ratecontrol_slice_type( x264_t *h, int frame_num ) h->thread[i]->param.rc.b_stat_read = 0; h->thread[i]->param.i_bframe_adaptive = 0; h->thread[i]->param.i_scenecut_threshold = 0; + h->thread[i]->param.rc.b_mb_tree = 0; if( h->thread[i]->param.i_bframe > 1 ) h->thread[i]->param.i_bframe = 1; }