Browse Source

vc2enc: allocate the DWT context with the current plane size

Previously used the luma size only.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
tags/n3.1
Rostislav Pehlivanov 10 years ago
parent
commit
bbcd5e99c3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/vc2enc.c

+ 2
- 2
libavcodec/vc2enc.c View File

@@ -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…
Cancel
Save