[x264-devel] Fix typo in p8x8 RD analysis

Jason Garrett-Glaser git at videolan.org
Wed Aug 24 22:40:18 CEST 2011


x264 | branch: master | Jason Garrett-Glaser <jason at x264.com> | Mon Aug 22 17:07:03 2011 -0700| [ddf82cdd4ab3f8172723201e9da22602e27e1204] | committer: Jason Garrett-Glaser

Fix typo in p8x8 RD analysis
Passed wrong idx to trellis.

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

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

diff --git a/encoder/macroblock.c b/encoder/macroblock.c
index 7b772c4..444b2bb 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 )
                     {



More information about the x264-devel mailing list