From 7f065b36c8c5ca837ac5f2d15b0b736c4a4b721c Mon Sep 17 00:00:00 2001 From: David Conrad Date: Wed, 17 Sep 2008 19:29:40 +0000 Subject: [PATCH] Take idct permutation into account when initializing dequantization matrices Originally committed as revision 15344 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vp3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index ff0b5b6a00..ae013c7956 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -627,7 +627,7 @@ static void init_dequantizer(Vp3DecodeContext *s) int qmin= 8<<(inter + !i); int qscale= i ? ac_scale_factor : dc_scale_factor; - s->qmat[inter][plane][i]= av_clip((qscale * coeff)/100 * 4, qmin, 4096); + s->qmat[inter][plane][s->dsp.idct_permutation[i]]= av_clip((qscale * coeff)/100 * 4, qmin, 4096); } } }