mirror of https://github.com/mstorsjo/fdk-aac.git
Merge "Unsigned Integer Overflow in transportDec_AdjustEndOfAccessUnit()."
This commit is contained in:
commit
7f3b4de053
|
@ -736,9 +736,9 @@ static TRANSPORTDEC_ERROR transportDec_AdjustEndOfAccessUnit(
|
||||||
hTp->parser.latm.m_audioMuxLengthBytes > 0) {
|
hTp->parser.latm.m_audioMuxLengthBytes > 0) {
|
||||||
int loasOffset;
|
int loasOffset;
|
||||||
|
|
||||||
loasOffset = (hTp->parser.latm.m_audioMuxLengthBytes * 8 +
|
loasOffset = ((INT)hTp->parser.latm.m_audioMuxLengthBytes * 8 +
|
||||||
FDKgetValidBits(hBs)) -
|
(INT)FDKgetValidBits(hBs)) -
|
||||||
hTp->globalFramePos;
|
(INT)hTp->globalFramePos;
|
||||||
if (loasOffset != 0) {
|
if (loasOffset != 0) {
|
||||||
FDKpushBiDirectional(hBs, loasOffset);
|
FDKpushBiDirectional(hBs, loasOffset);
|
||||||
/* For ELD and other payloads there is an unknown amount of padding,
|
/* For ELD and other payloads there is an unknown amount of padding,
|
||||||
|
|
Loading…
Reference in New Issue