From: Jason Garrett-Glaser Date: Tue, 23 Aug 2011 00:07:03 +0000 (-0700) Subject: Fix typo in p8x8 RD analysis X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=ddf82cdd4ab3f8172723201e9da22602e27e1204;p=x264.git Fix typo in p8x8 RD analysis Passed wrong idx to trellis. --- diff --git a/encoder/macroblock.c b/encoder/macroblock.c index 7b772c4e..444b2bb9 100644 --- a/encoder/macroblock.c +++ b/encoder/macroblock.c @@ -1187,7 +1187,7 @@ static ALWAYS_INLINE void x264_macroblock_encode_p8x8_internal( x264_t *h, int i h->dctf.sub8x8_dct( dct4x4, p_fenc, p_fdec ); for( int i4 = 0; i4 < 4; i4++ ) { - nz = x264_quant_4x4( h, dct4x4[i4], i_qp, ctx_cat_plane[DCT_LUMA_4x4][p], 0, p, 8*4+i4 ); + nz = x264_quant_4x4( h, dct4x4[i4], i_qp, ctx_cat_plane[DCT_LUMA_4x4][p], 0, p, i8*4+i4 ); h->mb.cache.non_zero_count[x264_scan8[p*16+i8*4+i4]] = nz; if( nz ) {