]> git.videolan.org Git - x264.git/commitdiff
Fix 2-pass ratecontrol continuation in case of missing statsfile
authorJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 4 Feb 2010 04:27:57 +0000 (20:27 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 15 Feb 2010 08:27:57 +0000 (00:27 -0800)
Didn't work properly if MB-tree was enabled.

encoder/ratecontrol.c

index 52196e7860048d51c60edffd94e80af115ebaf00..e314ba221c62bc06299b083f477963dc4367f0bc 100644 (file)
@@ -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;
             }