[FFmpeg-devel] [PATCH 5/7] vc2enc: allocate the DWT context with the current plane size
Rostislav Pehlivanov
atomnuker at gmail.com
Sat Feb 27 20:29:06 CET 2016
Previously used the luma size only.
Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
---
libavcodec/vc2enc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index 27db6c0..600a8ac 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;
}
--
2.7.0
More information about the ffmpeg-devel
mailing list