mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-25 01:41:31 +08:00
Take idct permutation into account when initializing dequantization matrices
Originally committed as revision 15344 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user