aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2018-12-26 22:51:50 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-12-26 22:51:50 +0000
commit7f3b4de05380a49ac90d336d91e3509fe139a244 (patch)
tree31152d34357f36308de7088dad1ed525e3879f76
parente8b5674a5f99b4d9c893ad5fcee24279cd3a81ac (diff)
parent71602ad45c131d431b40f659aa3f5ea2ea5883eb (diff)
downloadfdk-aac-7f3b4de05380a49ac90d336d91e3509fe139a244.tar.gz
fdk-aac-7f3b4de05380a49ac90d336d91e3509fe139a244.tar.bz2
fdk-aac-7f3b4de05380a49ac90d336d91e3509fe139a244.zip
Merge "Unsigned Integer Overflow in transportDec_AdjustEndOfAccessUnit()."
-rw-r--r--libMpegTPDec/src/tpdec_lib.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libMpegTPDec/src/tpdec_lib.cpp b/libMpegTPDec/src/tpdec_lib.cpp
index 1d8b7b3..cee0768 100644
--- a/libMpegTPDec/src/tpdec_lib.cpp
+++ b/libMpegTPDec/src/tpdec_lib.cpp
@@ -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,