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; }