mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
2f19583911
commit
bbcd5e99c3
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue