diff options
author | David Conrad <lessen42@gmail.com> | 2008-09-17 19:29:40 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2008-09-17 19:29:40 +0000 |
commit | 7f065b36c8c5ca837ac5f2d15b0b736c4a4b721c (patch) | |
tree | 5eef022c60ddf65a854c4c03cea32da9c32fb650 /libavcodec/vp3.c | |
parent | faf6d6964b72e4710426efb218f13b8a87f34eae (diff) | |
download | ffmpeg-7f065b36c8c5ca837ac5f2d15b0b736c4a4b721c.tar.gz |
Take idct permutation into account when initializing dequantization matrices
Originally committed as revision 15344 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r-- | libavcodec/vp3.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } } |