]> granicus.if.org Git - libx264/commitdiff
10L in r1041
authorFiona Glaser <fiona@x264.com>
Fri, 28 Nov 2008 22:32:11 +0000 (14:32 -0800)
committerFiona Glaser <fiona@x264.com>
Fri, 28 Nov 2008 22:32:11 +0000 (14:32 -0800)
encoder/cabac.c

index 0768de718d552b91a688739154517e50eeb636bf..2fd240dfe6f92aa5ab1cf45f9be3901a82f99e75 100644 (file)
@@ -1105,7 +1105,7 @@ static void x264_partition_size_cabac( x264_t *h, x264_cabac_t *cb, int i8, int
 static void x264_subpartition_size_cabac( x264_t *h, x264_cabac_t *cb, int i4, int i_pixel )
 {
     int b_8x4 = i_pixel == PIXEL_8x4;
-    h->mb.cache.non_zero_count[x264_scan8[i4]] = array_non_zero( h->dct.luma4x4[i4+2-b_8x4] );
+    h->mb.cache.non_zero_count[x264_scan8[i4]] = array_non_zero( h->dct.luma4x4[i4] );
     block_residual_write_cabac( h, cb, DCT_LUMA_4x4, i4, h->dct.luma4x4[i4], 16 );
     if( i_pixel == PIXEL_4x4 )
         x264_cabac_mb_mvd( h, cb, 0, i4, 1, 1 );