diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-02-27 18:39:32 +0000 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-02-28 19:06:29 +0000 |
commit | bbcd5e99c303726e2bb8716d20580b0994430e79 (patch) | |
tree | 134c14a661af7d05a32ca19c3dd1a89bfb9de1ea /libavcodec/vc2enc.c | |
parent | 2f19583911eb4d67afaa72ec2bdbef583087f3f7 (diff) | |
download | ffmpeg-bbcd5e99c303726e2bb8716d20580b0994430e79.tar.gz |
vc2enc: allocate the DWT context with the current plane size
Previously used the luma size only.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/vc2enc.c')
-rw-r--r-- | libavcodec/vc2enc.c | 4 |
1 files 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; } |