Take idct permutation into account when initializing dequantization matrices
authorDavid Conrad <lessen42@gmail.com>
Wed, 17 Sep 2008 19:29:40 +0000 (19:29 +0000)
committerDavid Conrad <lessen42@gmail.com>
Wed, 17 Sep 2008 19:29:40 +0000 (19:29 +0000)
Originally committed as revision 15344 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vp3.c

index ff0b5b6..ae013c7 100644 (file)
@@ -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);
             }
         }
     }