diff options
| author | Fraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de> | 2018-05-09 17:26:58 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2018-05-09 17:26:58 -0700 |
| commit | 3727e8927f02558b21317ab8291727372ea0beb7 (patch) | |
| tree | 756d84f186478676d172f1afc3339c05c6b69709 /libMpegTPDec/src/tpdec_asc.cpp | |
| parent | b2ce5c82bd4288b0e55d23f8cbf1d51150d752fc (diff) | |
| parent | 57d474b424be58783e7abba469d2f3d800094967 (diff) | |
| download | fdk-aac-3727e8927f02558b21317ab8291727372ea0beb7.tar.gz fdk-aac-3727e8927f02558b21317ab8291727372ea0beb7.tar.bz2 fdk-aac-3727e8927f02558b21317ab8291727372ea0beb7.zip | |
FDK patches: fix overflows in decoder out-of-band config am: 44ac411683
am: 57d474b424
Change-Id: I88183937af5edfb0430f64618b8c25f066f698de
Diffstat (limited to 'libMpegTPDec/src/tpdec_asc.cpp')
| -rw-r--r-- | libMpegTPDec/src/tpdec_asc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libMpegTPDec/src/tpdec_asc.cpp b/libMpegTPDec/src/tpdec_asc.cpp index 74beaa6..b7fd2a1 100644 --- a/libMpegTPDec/src/tpdec_asc.cpp +++ b/libMpegTPDec/src/tpdec_asc.cpp @@ -257,11 +257,11 @@ static int CProgramConfig_ReadHeightExt(CProgramConfig *pPce, } } else { /* No valid extension data found -> restore the initial bitbuffer state */ - FDKpushBack(bs, startAnchor - FDKgetValidBits(bs)); + FDKpushBack(bs, (INT)startAnchor - (INT)FDKgetValidBits(bs)); } /* Always report the bytes read. */ - *bytesAvailable -= (startAnchor - FDKgetValidBits(bs)) >> 3; + *bytesAvailable -= ((INT)startAnchor - (INT)FDKgetValidBits(bs)) >> 3; return (err); } |
