[x264-devel] commit: Fix 2-pass ratecontrol continuation in case of missing statsfile ( Jason Garrett-Glaser )

git version control git at videolan.org
Mon Feb 15 10:07:46 CET 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Wed Feb  3 20:27:57 2010 -0800| [bb0990813c7fb047a322c5d463cde5ae8e22c756] | committer: Jason Garrett-Glaser 

Fix 2-pass ratecontrol continuation in case of missing statsfile
Didn't work properly if MB-tree was enabled.

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

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

diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c
index 52196e7..e314ba2 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;
             }



More information about the x264-devel mailing list