Bug 1224371 - Cast uint8_t to uint32_t before shift. r=jya

Note: C-style cast because it is C code.
This commit is contained in:
Gerald Squelart 2016-01-04 09:05:47 +01:00
parent fcfe0c61e6
commit f3bb18f40b

View File

@ -499,7 +499,7 @@ vpx_codec_err_t vp9_parse_superframe_index(const uint8_t *data,
uint32_t this_sz = 0;
for (j = 0; j < mag; ++j)
this_sz |= (*x++) << (j * 8);
this_sz |= (uint32_t)(*x++) << (j * 8);
sizes[i] = this_sz;
}
*count = frames;