[x264-devel] commit: Fix speed regression in r951 (Jason Garrett-Glaser )

git version control git at videolan.org
Mon Sep 1 20:20:47 CEST 2008


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Mon Sep  1 10:35:41 2008 -0700| [7b71d586bce87181a4978ee3f8eb775b0481f6d4] | committer: Jason Garrett-Glaser 

Fix speed regression in r951
Row SATDs are only necessary in VBV mode, so don't need to be checked if VBV is off.

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

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

diff --git a/encoder/slicetype.c b/encoder/slicetype.c
index e68b06e..767e02f 100644
--- a/encoder/slicetype.c
+++ b/encoder/slicetype.c
@@ -248,7 +248,7 @@ static int x264_slicetype_frame_cost( x264_t *h, x264_mb_analysis_t *a,
      * If we have tried this frame as P, then we have also tried
      * the preceding frames as B. (is this still true?) */
     /* Also check that we already calculated the row SATDs for the current frame. */
-    if( frames[b]->i_cost_est[b-p0][p1-b] >= 0 && frames[b]->i_row_satds[b-p0][p1-b][0] != -1 )
+    if( frames[b]->i_cost_est[b-p0][p1-b] >= 0 && (!h->param.rc.i_vbv_buffer_size || frames[b]->i_row_satds[b-p0][p1-b][0] != -1) )
     {
         i_score = frames[b]->i_cost_est[b-p0][p1-b];
     }



More information about the x264-devel mailing list