snow: zero scratchbuf.

This should fix some valgrind warnings.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-02-16 06:25:32 +01:00
parent 0f155c8601
commit b92ecda2c9
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
ff_scale_mv_ref[i][j] = 256*(i+1)/(j+1);
s->avctx->get_buffer(s->avctx, &s->mconly_picture);
s->scratchbuf = av_malloc(s->mconly_picture.linesize[0]*7*MB_SIZE);
s->scratchbuf = av_mallocz(s->mconly_picture.linesize[0]*7*MB_SIZE);
return 0;
}