[FFmpeg-cvslog] vc2enc: allocate the DWT context with the current plane size
Rostislav Pehlivanov
git at videolan.org
Sun Feb 28 20:06:41 CET 2016
ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Sat Feb 27 18:39:32 2016 +0000| [bbcd5e99c303726e2bb8716d20580b0994430e79] | committer: Rostislav Pehlivanov
vc2enc: allocate the DWT context with the current plane size
Previously used the luma size only.
Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bbcd5e99c303726e2bb8716d20580b0994430e79
---
libavcodec/vc2enc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index 01cb6a5..1b6d7fb 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;
}
More information about the ffmpeg-cvslog
mailing list