Commit a2eae0ff authored by Michael Niedermayer's avatar Michael Niedermayer

amvenc: another quant table fix

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2aaf32f5
...@@ -2955,13 +2955,17 @@ static int encode_picture(MpegEncContext *s, int picture_number) ...@@ -2955,13 +2955,17 @@ static int encode_picture(MpegEncContext *s, int picture_number)
for(i=1;i<64;i++){ for(i=1;i<64;i++){
int j= s->dsp.idct_permutation[ff_zigzag_direct[i]]; int j= s->dsp.idct_permutation[ff_zigzag_direct[i]];
s->intra_matrix[j] = sp5x_quant_table[5*2][i]; s->intra_matrix[j] = sp5x_quant_table[5*2+0][i];
s->chroma_intra_matrix[j] = sp5x_quant_table[5*2+1][i];
} }
s->y_dc_scale_table= y; s->y_dc_scale_table= y;
s->c_dc_scale_table= c; s->c_dc_scale_table= c;
s->intra_matrix[0] = 14; s->intra_matrix[0] = 13;
s->chroma_intra_matrix[0] = 14;
ff_convert_matrix(&s->dsp, s->q_intra_matrix, s->q_intra_matrix16, ff_convert_matrix(&s->dsp, s->q_intra_matrix, s->q_intra_matrix16,
s->intra_matrix, s->intra_quant_bias, 8, 8, 1); s->intra_matrix, s->intra_quant_bias, 8, 8, 1);
ff_convert_matrix(&s->dsp, s->q_chroma_intra_matrix, s->q_chroma_intra_matrix16,
s->chroma_intra_matrix, s->intra_quant_bias, 8, 8, 1);
s->qscale= 8; s->qscale= 8;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment