Mercurial > libavcodec.hg
changeset 10418:84d50ce146f7 libavcodec
Huffyuv: Fix a valgrind warning in get_vlc2().
The padding in bitstream_buffer wasn't initialized.
author | astrange |
---|---|
date | Fri, 16 Oct 2009 22:52:23 +0000 |
parents | 952912ff616a |
children | 71760101783e |
files | huffyuv.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/huffyuv.c Fri Oct 16 16:50:15 2009 +0000 +++ b/huffyuv.c Fri Oct 16 22:52:23 2009 +0000 @@ -942,6 +942,7 @@ 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])