mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
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:
parent
fcfe0c61e6
commit
f3bb18f40b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user