rendered paste bodydiff --git a/encoder/macroblock.c b/encoder/macroblock.cindex db32ad2..7726341 100644--- a/encoder/macroblock.c+++ b/encoder/macroblock.c@@ -313,22 +313,22 @@ static inline int x264_mb_optimize_chroma_dc( x264_t *h, int b_inter, int i_qp, /* Start with the highest frequency coefficient... is this the best option? */ for( coeff = 3; coeff >= 0; coeff-- ) {- int sign = dct2x2[0][coeff] < 0 ? -1 : 1;- int level = dct2x2[0][coeff];+ int sign = dct2x2[coeff>>1][coeff&1] < 0 ? -1 : 1;+ int level = dct2x2[coeff>>1][coeff&1]; if( !level ) continue; while( level ) {- dct2x2[0][coeff] = level - sign;+ dct2x2[coeff>>1][coeff&1] = level - sign; if( idct_dequant_round_2x2_dc( dct2x2_orig, dct2x2, h->dequant4_mf[CQM_4IC + b_inter], i_qp ) ) break; level -= sign; } nz |= level;- dct2x2[0][coeff] = level;+ dct2x2[coeff>>1][coeff&1] = level; } return !!nz;