提交 3ef10406 编写于 作者: R Rostislav Pehlivanov

vc2enc: correctly zero out coefficient array padding

Credit for figuring this out goes to James Darnley.
Signed-off-by: NRostislav Pehlivanov <atomnuker@gmail.com>
上级 35346c7b
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册