set the chroma DC coefficients to zero for residual coding in qpel-rd
fix C99ism
do
{
+ int i_prefix, ctx;
i_coeff--;
+
/* write coeff_abs - 1 */
- int i_prefix = X264_MIN( i_coeff_abs_m1[i_coeff], 14 );
- int ctx = coeff_abs_level1_ctx[node_ctx] + i_ctx_level;
+ i_prefix = X264_MIN( i_coeff_abs_m1[i_coeff], 14 );
+ ctx = coeff_abs_level1_ctx[node_ctx] + i_ctx_level;
if( i_prefix )
{
h->dctf.sub4x4_dct( dct4x4, p_fenc, p_fdec );
h->quantf.quant_4x4( dct4x4, h->quant4_mf[CQM_4PC][i_qp], h->quant4_bias[CQM_4PC][i_qp] );
h->zigzagf.scan_4x4( h->dct.luma4x4[16+i8+ch*4], dct4x4 );
+ h->dct.luma4x4[16+i8+ch*4][0] = 0;
if( array_non_zero( dct4x4 ) )
{
h->quantf.dequant_4x4( dct4x4, h->dequant4_mf[CQM_4PC], i_qp );