mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue