aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/huffyuv.c
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2009-10-16 22:52:23 +0000
committerAlexander Strange <astrange@ithinksw.com>2009-10-16 22:52:23 +0000
commit6ec8eadda49a6688f275f0f213ef98005c47e126 (patch)
treeff868b14bdbf0f8b8960681f45e0051335d95138 /libavcodec/huffyuv.c
parenta0992374ee727b700d059d3c83b41498b32a43a6 (diff)
downloadffmpeg-6ec8eadda49a6688f275f0f213ef98005c47e126.tar.gz
Huffyuv: Fix a valgrind warning in get_vlc2().
The padding in bitstream_buffer wasn't initialized. Originally committed as revision 20257 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/huffyuv.c')
-rw-r--r--libavcodec/huffyuv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index 531c55be0f..bd1e12746f 100644
--- a/libavcodec/huffyuv.c
+++ b/libavcodec/huffyuv.c
@@ -942,6 +942,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
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])