diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-02-16 06:25:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-02-16 06:25:32 +0100 |
commit | b92ecda2c96e4a087d59924a745cf9a0046913a0 (patch) | |
tree | 24daf8d82f6c82269274f0bedf434819676ad1ee /libavcodec/snow.c | |
parent | 0f155c860139e8633a41a6198ecceb334668a132 (diff) | |
download | ffmpeg-streaming-b92ecda2c96e4a087d59924a745cf9a0046913a0.zip ffmpeg-streaming-b92ecda2c96e4a087d59924a745cf9a0046913a0.tar.gz |
snow: zero scratchbuf.
This should fix some valgrind warnings.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r-- | libavcodec/snow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c index e63a4c3..cd0d9fe 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -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; } |