[x264-devel] Fix CAVLC+RDO in 4:4:4

Anton Mitrofanov git at videolan.org
Tue Sep 25 11:30:45 CEST 2018


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Tue Aug 21 15:11:21 2018 +0300| [fb17a6b5b51d02020fb0cadea2b27c7803e734ba] | committer: Henrik Gramner

Fix CAVLC+RDO in 4:4:4

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

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

diff --git a/encoder/cavlc.c b/encoder/cavlc.c
index 929ee7db..7ca8b214 100644
--- a/encoder/cavlc.c
+++ b/encoder/cavlc.c
@@ -292,7 +292,7 @@ static ALWAYS_INLINE void cavlc_macroblock_luma_residual( x264_t *h, int plane_c
 #if RDO_SKIP_BS
 static ALWAYS_INLINE void cavlc_partition_luma_residual( x264_t *h, int i8, int p )
 {
-    if( h->mb.b_transform_8x8 && h->mb.cache.non_zero_count[x264_scan8[i8*4]] )
+    if( h->mb.b_transform_8x8 && h->mb.cache.non_zero_count[x264_scan8[i8*4+p*16]] )
         h->zigzagf.interleave_8x8_cavlc( h->dct.luma4x4[i8*4+p*16], h->dct.luma8x8[i8+p*4],
                                          &h->mb.cache.non_zero_count[x264_scan8[i8*4+p*16]] );
 



More information about the x264-devel mailing list