Commit b92ecda2 authored by Michael Niedermayer's avatar Michael Niedermayer

snow: zero scratchbuf.

This should fix some valgrind warnings.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0f155c86
...@@ -446,7 +446,7 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){ ...@@ -446,7 +446,7 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
ff_scale_mv_ref[i][j] = 256*(i+1)/(j+1); ff_scale_mv_ref[i][j] = 256*(i+1)/(j+1);
s->avctx->get_buffer(s->avctx, &s->mconly_picture); 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; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment