Index: encoder/macroblock.c =================================================================== --- encoder/macroblock.c (revision 487) +++ encoder/macroblock.c (working copy) @@ -727,7 +727,7 @@ { const int idx = i8x8 * 4 + i4x4; - quant_4x4( h, dct4x4[idx], (int(*)[4][4])def_quant4_mf, i_qp, 0 ); + quant_4x4( h, dct4x4[idx], h->quant4_mf[CQM_4PY], i_qp, 0 ); scan_zigzag_4x4full( dctscan, dct4x4[idx] ); i_decimate_mb += x264_mb_decimate_score( dctscan, 16 ); @@ -763,7 +763,7 @@ dct2x2[1][0] = dct4x4[2][0][0]; dct2x2[1][1] = dct4x4[3][0][0]; h->dctf.dct2x2dc( dct2x2 ); - quant_2x2_dc( h, dct2x2, (int(*)[4][4])def_quant4_mf, i_qp, 0 ); + quant_2x2_dc( h, dct2x2, h->quant4_mf[CQM_4PC], i_qp, 0 ); if( dct2x2[0][0] || dct2x2[0][1] || dct2x2[1][0] || dct2x2[1][1] ) { /* can't be */ @@ -773,7 +773,7 @@ /* calculate dct coeffs */ for( i4x4 = 0, i_decimate_mb = 0; i4x4 < 4; i4x4++ ) { - quant_4x4( h, dct4x4[i4x4], (int(*)[4][4])def_quant4_mf, i_qp, 0 ); + quant_4x4( h, dct4x4[i4x4], h->quant4_mf[CQM_4PC], i_qp, 0 ); scan_zigzag_4x4( dctscan, dct4x4[i4x4] ); i_decimate_mb += x264_mb_decimate_score( dctscan, 15 );