[FFmpeg-cvslog] amvenc: another quant table fix
Michael Niedermayer
git at videolan.org
Sun Sep 25 13:25:18 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep 25 06:47:08 2011 +0200| [a2eae0ffd403899e3f67f955e2ab914d16c019a0] | committer: Michael Niedermayer
amvenc: another quant table fix
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a2eae0ffd403899e3f67f955e2ab914d16c019a0
---
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 ab27e46..5943ce7 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;
}
More information about the ffmpeg-cvslog
mailing list