Commit 7f065b36 authored by David Conrad's avatar David Conrad

Take idct permutation into account when initializing dequantization matrices

Originally committed as revision 15344 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent faf6d696
...@@ -627,7 +627,7 @@ static void init_dequantizer(Vp3DecodeContext *s) ...@@ -627,7 +627,7 @@ static void init_dequantizer(Vp3DecodeContext *s)
int qmin= 8<<(inter + !i); int qmin= 8<<(inter + !i);
int qscale= i ? ac_scale_factor : dc_scale_factor; 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);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment