From bbcd5e99c303726e2bb8716d20580b0994430e79 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Sat, 27 Feb 2016 18:39:32 +0000 Subject: vc2enc: allocate the DWT context with the current plane size Previously used the luma size only. Signed-off-by: Rostislav Pehlivanov --- libavcodec/vc2enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c index 01cb6a5031..1b6d7fb95f 100644 --- a/libavcodec/vc2enc.c +++ b/libavcodec/vc2enc.c @@ -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; } -- cgit v1.2.3