vc2enc: allocate the DWT context with the current plane size

Previously used the luma size only.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
This commit is contained in:
Rostislav Pehlivanov 2016-02-27 18:39:32 +00:00
parent 2f19583911
commit bbcd5e99c3

View File

@ -1142,8 +1142,8 @@ static av_cold int vc2_encode_init(AVCodecContext *avctx)
/* DWT init */ /* DWT init */
if (ff_vc2enc_init_transforms(&s->transform_args[i].t, if (ff_vc2enc_init_transforms(&s->transform_args[i].t,
s->plane[0].coef_stride, s->plane[i].coef_stride,
s->plane[0].dwt_height)) s->plane[i].dwt_height))
goto alloc_fail; goto alloc_fail;
} }