aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vc2enc.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2016-02-26 12:21:36 +0000
committerRostislav Pehlivanov <atomnuker@gmail.com>2016-03-28 17:02:05 +0100
commitf01919b57af0ff99820b6e8285d6fe546d3ed938 (patch)
tree1167b18ef695451b338bc3cb18d033b1d95165b6 /libavcodec/vc2enc.c
parent6cb5bbc66024572a5310717c03ce3227ec8f4c2c (diff)
downloadffmpeg-f01919b57af0ff99820b6e8285d6fe546d3ed938.tar.gz
vc2enc: correctly zero out coefficient array padding
Credit for figuring this out goes to James Darnley. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com> (cherry picked from commit 3ef10406e19663a78791ed1b38178fb00d4c7d88)
Diffstat (limited to 'libavcodec/vc2enc.c')
-rw-r--r--libavcodec/vc2enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index f42b10ffef..bf3f3a980d 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];