mirror of https://github.com/mstorsjo/fdk-aac.git
Merge "Unsigned Integer Overflow in CAacDecoder_PreRollExtensionPayloadParse()"
am: a5cf260931
Change-Id: Ib3c4c335ef6bbfdccd4db91b03f5f0cdde7705a3
This commit is contained in:
commit
466adf2a1b
|
@ -775,7 +775,7 @@ LINKSPEC_CPP AAC_DECODER_ERROR CAacDecoder_PreRollExtensionPayloadParse(
|
|||
/* For every AU get length and offset in the bitstream */
|
||||
prerollAULength[i] = escapedValue(hBs, 16, 16, 0);
|
||||
if (prerollAULength[i] > 0) {
|
||||
prerollAUOffset[i] = auStartAnchor - FDKgetValidBits(hBs);
|
||||
prerollAUOffset[i] = auStartAnchor - (INT)FDKgetValidBits(hBs);
|
||||
independencyFlag = FDKreadBit(hBs);
|
||||
if (i == 0 && !independencyFlag) {
|
||||
*numPrerollAU = 0;
|
||||
|
|
Loading…
Reference in New Issue