mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
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 */
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user