[FFmpeg-cvslog] r20257 - trunk/libavcodec/huffyuv.c
astrange
subversion
Sat Oct 17 00:52:24 CEST 2009
Author: astrange
Date: Sat Oct 17 00:52:23 2009
New Revision: 20257
Log:
Huffyuv: Fix a valgrind warning in get_vlc2().
The padding in bitstream_buffer wasn't initialized.
Modified:
trunk/libavcodec/huffyuv.c
Modified: trunk/libavcodec/huffyuv.c
==============================================================================
--- trunk/libavcodec/huffyuv.c Fri Oct 16 18:50:15 2009 (r20256)
+++ trunk/libavcodec/huffyuv.c Sat Oct 17 00:52:23 2009 (r20257)
@@ -942,6 +942,7 @@ static int decode_frame(AVCodecContext *
if (!s->bitstream_buffer)
return AVERROR(ENOMEM);
+ memset(s->bitstream_buffer + buf_size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
s->dsp.bswap_buf((uint32_t*)s->bitstream_buffer, (const uint32_t*)buf, buf_size/4);
if(p->data[0])
More information about the ffmpeg-cvslog
mailing list