Commit c2c335cd authored by astrange's avatar astrange

Huffyuv: Fix a valgrind warning in get_vlc2().

The padding in bitstream_buffer wasn't initialized.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20257 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9bfee01f
...@@ -942,6 +942,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac ...@@ -942,6 +942,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
if (!s->bitstream_buffer) if (!s->bitstream_buffer)
return AVERROR(ENOMEM); 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); s->dsp.bswap_buf((uint32_t*)s->bitstream_buffer, (const uint32_t*)buf, buf_size/4);
if(p->data[0]) if(p->data[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