diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-25 06:47:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-25 12:29:20 +0200 |
commit | a2eae0ffd403899e3f67f955e2ab914d16c019a0 (patch) | |
tree | 9bd79d4f842468679a61ac87d9e1ace07f495b36 /libavcodec/mpegvideo_enc.c | |
parent | 2aaf32f52f25ac7b3b18606a00953c0aa8e2e7bd (diff) | |
download | ffmpeg-a2eae0ffd403899e3f67f955e2ab914d16c019a0.tar.gz |
amvenc: another quant table fix
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index ab27e4626d..5943ce71e0 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -2955,13 +2955,17 @@ static int encode_picture(MpegEncContext *s, int picture_number) for(i=1;i<64;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->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, 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; } |