vpxdec: fix use of uninitialized memory for raw files

The sz member of the vpx_codec_stream_info_t structure must be
initialized when passed to vpx_codec_peek_stream_info().

Change-Id: I2d13d287d9639262b932cf44671a595fdf3c38ef
This commit is contained in:
John Koleszar 2010-11-23 13:40:31 -05:00
parent ad6150f769
commit 19255b8fe0

View File

@ -442,6 +442,8 @@ unsigned int file_is_raw(FILE *infile,
int is_raw = 0;
vpx_codec_stream_info_t si;
si.sz = sizeof(si);
if (fread(buf, 1, 32, infile) == 32)
{
int i;