aboutsummaryrefslogtreecommitdiffstats
path: root/libAACdec/src/aacdecoder_lib.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-05-24 07:24:38 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-05-24 07:24:38 +0000
commitc85b838a65360747539d85099d92268dd3994d11 (patch)
tree4f088dbfd47d22d3f90ebcbcf054a26d6e69bdce /libAACdec/src/aacdecoder_lib.cpp
parente30420c551a348fdf0a20888ca2b95b527060061 (diff)
parenta4d1f0ad52e2cf6f168d2193216602f52033fc27 (diff)
downloadfdk-aac-c85b838a65360747539d85099d92268dd3994d11.tar.gz
fdk-aac-c85b838a65360747539d85099d92268dd3994d11.tar.bz2
fdk-aac-c85b838a65360747539d85099d92268dd3994d11.zip
Snap for 4801384 from a4d1f0ad52e2cf6f168d2193216602f52033fc27 to pi-release
Change-Id: Iab0959417db83cdeb3af7ce59ef4d8584a96b8be
Diffstat (limited to 'libAACdec/src/aacdecoder_lib.cpp')
-rw-r--r--libAACdec/src/aacdecoder_lib.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libAACdec/src/aacdecoder_lib.cpp b/libAACdec/src/aacdecoder_lib.cpp
index e62d187..cd112b6 100644
--- a/libAACdec/src/aacdecoder_lib.cpp
+++ b/libAACdec/src/aacdecoder_lib.cpp
@@ -1082,15 +1082,15 @@ static void aacDecoder_UpdateBitStreamCounters(CStreamInfo *pSi,
/* bit/byte counters */
{
- int nBytes;
+ INT nBytes;
nBytes = nBits >> 3;
- pSi->numTotalBytes += nBytes;
+ pSi->numTotalBytes = (UINT)((INT)pSi->numTotalBytes + nBytes);
if (IS_OUTPUT_VALID(ErrorStatus)) {
pSi->numTotalAccessUnits++;
}
if (IS_DECODE_ERROR(ErrorStatus)) {
- pSi->numBadBytes += nBytes;
+ pSi->numBadBytes = (UINT)((INT)pSi->numBadBytes + nBytes);
pSi->numBadAccessUnits++;
}
}