mirror of https://git.ffmpeg.org/ffmpeg.git
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
This commit is contained in:
parent
a0992374ee
commit
6ec8eadda4
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue