From 91368390db9179226b5b4ed718a5788b754f9302 Mon Sep 17 00:00:00 2001 From: Anton Mitrofanov Date: Tue, 22 Sep 2015 19:05:52 +0300 Subject: [PATCH] Correctly update the intra row predictor in B-frames It was previously used but never updated from it's initialization value. --- encoder/ratecontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.2