1
0
mirror of https://github.com/mstorsjo/fdk-aac.git synced 2025-02-17 03:30:35 +01:00

Merge "Unsigned Integer Overflow in transportDec_AdjustEndOfAccessUnit()."

am: 7f3b4de053

Change-Id: I129ac675f560590ff1a082cc701a77ae173da707
This commit is contained in:
Jean-Michel Trivi 2018-12-26 14:56:29 -08:00 committed by android-build-merger
commit 0102aec77e

View File

@ -736,9 +736,9 @@ static TRANSPORTDEC_ERROR transportDec_AdjustEndOfAccessUnit(
hTp->parser.latm.m_audioMuxLengthBytes > 0) {
int loasOffset;
loasOffset = (hTp->parser.latm.m_audioMuxLengthBytes * 8 +
FDKgetValidBits(hBs)) -
hTp->globalFramePos;
loasOffset = ((INT)hTp->parser.latm.m_audioMuxLengthBytes * 8 +
(INT)FDKgetValidBits(hBs)) -
(INT)hTp->globalFramePos;
if (loasOffset != 0) {
FDKpushBiDirectional(hBs, loasOffset);
/* For ELD and other payloads there is an unknown amount of padding,