[x264-devel] Correctly update the intra row predictor in B-frames

Anton Mitrofanov git at videolan.org
Sun Oct 11 19:01:08 CEST 2015


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Tue Sep 22 19:05:52 2015 +0300| [91368390db9179226b5b4ed718a5788b754f9302] | committer: Henrik Gramner

Correctly update the intra row predictor in B-frames

It was previously used but never updated from it's initialization value.

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

 encoder/ratecontrol.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c
index 78051cc..c692691 100644
--- a/encoder/ratecontrol.c
+++ b/encoder/ratecontrol.c
@@ -1586,7 +1586,7 @@ int x264_ratecontrol_mb( x264_t *h, int bits )
     h->fdec->f_row_qscale[y] = qscale;
 
     update_predictor( &rc->row_pred[0], qscale, h->fdec->i_row_satd[y], h->fdec->i_row_bits[y] );
-    if( h->sh.i_type == SLICE_TYPE_P && rc->qpm < h->fref[0][0]->f_row_qp[y] )
+    if( h->sh.i_type != SLICE_TYPE_I && rc->qpm < h->fref[0][0]->f_row_qp[y] )
         update_predictor( &rc->row_pred[1], qscale, h->fdec->i_row_satds[0][0][y], h->fdec->i_row_bits[y] );
 
     /* update ratecontrol per-mbpair in MBAFF */



More information about the x264-devel mailing list