mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
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 3ef10406e1
)
This commit is contained in:
parent
6cb5bbc660
commit
f01919b57a
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user