Commit bbcd5e99 authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

vc2enc: allocate the DWT context with the current plane size

Previously used the luma size only.
Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent 2f195839
......@@ -1142,8 +1142,8 @@ static av_cold int vc2_encode_init(AVCodecContext *avctx)
/* DWT init */
if (ff_vc2enc_init_transforms(&s->transform_args[i].t,
s->plane[0].coef_stride,
s->plane[0].dwt_height))
s->plane[i].coef_stride,
s->plane[i].dwt_height))
goto alloc_fail;
}
......
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