Commit 57ed8deb authored by Martin Storsjö's avatar Martin Storsjö

wmv2: Propagate the wmv2 idct permutation type to the dsputils context

This fixes encoding where the idct setting originally was set to
FF_IDCT_AUTO and dsputil chose a default idct with a non-null
permutation - even if the permutation tables were updated,
dct_quantize in x86/mpegvideoenc_template.c also checked the
value of this type variable.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent e90820d4
...@@ -29,6 +29,7 @@ av_cold void ff_wmv2_common_init(Wmv2Context * w){ ...@@ -29,6 +29,7 @@ av_cold void ff_wmv2_common_init(Wmv2Context * w){
MpegEncContext * const s= &w->s; MpegEncContext * const s= &w->s;
ff_wmv2dsp_init(&w->wdsp); ff_wmv2dsp_init(&w->wdsp);
s->dsp.idct_permutation_type = w->wdsp.idct_perm;
ff_init_scantable_permutation(s->dsp.idct_permutation, ff_init_scantable_permutation(s->dsp.idct_permutation,
w->wdsp.idct_perm); w->wdsp.idct_perm);
ff_init_scantable(s->dsp.idct_permutation, &w->abt_scantable[0], ff_init_scantable(s->dsp.idct_permutation, &w->abt_scantable[0],
......
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