diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-02-26 15:21:36 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-02-26 15:21:36 +0300 |
commit | 3ef10406e19663a78791ed1b38178fb00d4c7d88 (patch) | |
tree | dc96ddfc45632cf6c42d982f7e928544a139cd8a /libavcodec/vc2enc.c | |
parent | 35346c7b0f7cddf8581a6aac3178c3ecf7c25283 (diff) |
vc2enc: correctly zero out coefficient array padding
Credit for figuring this out goes to James Darnley.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/vc2enc.c')
-rw-r--r-- | libavcodec/vc2enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c index 71f74b50bc..3f030619cf 100644 --- a/libavcodec/vc2enc.c +++ b/libavcodec/vc2enc.c @@ -867,7 +867,7 @@ static int dwt_plane(AVCodecContext *avctx, void *arg) } } - memset(buf, 0, (p->coef_stride*p->dwt_height - p->height*p->width)*sizeof(dwtcoef)); + memset(buf, 0, p->coef_stride * (p->dwt_height - p->height) * sizeof(dwtcoef)); for (level = s->wavelet_depth-1; level >= 0; level--) { const SubBand *b = &p->band[level][0]; |