From: Anton Mitrofanov Date: Tue, 22 Sep 2015 16:05:52 +0000 (+0300) Subject: Correctly update the intra row predictor in B-frames X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=91368390db9179226b5b4ed718a5788b754f9302;p=x264 Correctly update the intra row predictor in B-frames It was previously used but never updated from it's initialization value. --- diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index 78051ccc..c692691e 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 */