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-27 07:25:24 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-05-27 07:25:24 +0000
commitf76ceebf7a0ab901ac6586d764ae47576c17e08c (patch)
tree41c65cebd836ff3f949f1134512985e4a1288593 /libAACdec/src/aacdecoder_lib.cpp
parentc85b838a65360747539d85099d92268dd3994d11 (diff)
parentf19e863cce96cc1e5f4ad7ce512810d5a2843ea6 (diff)
downloadfdk-aac-f76ceebf7a0ab901ac6586d764ae47576c17e08c.tar.gz
fdk-aac-f76ceebf7a0ab901ac6586d764ae47576c17e08c.tar.bz2
fdk-aac-f76ceebf7a0ab901ac6586d764ae47576c17e08c.zip
Snap for 4807121 from f19e863cce96cc1e5f4ad7ce512810d5a2843ea6 to pi-release
Change-Id: I8797944fb72a1182a059e75425a8b54b4e8abf51
Diffstat (limited to 'libAACdec/src/aacdecoder_lib.cpp')
-rw-r--r--libAACdec/src/aacdecoder_lib.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libAACdec/src/aacdecoder_lib.cpp b/libAACdec/src/aacdecoder_lib.cpp
index cd112b6..d98cf5a 100644
--- a/libAACdec/src/aacdecoder_lib.cpp
+++ b/libAACdec/src/aacdecoder_lib.cpp
@@ -1085,12 +1085,12 @@ static void aacDecoder_UpdateBitStreamCounters(CStreamInfo *pSi,
INT nBytes;
nBytes = nBits >> 3;
- pSi->numTotalBytes = (UINT)((INT)pSi->numTotalBytes + nBytes);
+ pSi->numTotalBytes += nBytes;
if (IS_OUTPUT_VALID(ErrorStatus)) {
pSi->numTotalAccessUnits++;
}
if (IS_DECODE_ERROR(ErrorStatus)) {
- pSi->numBadBytes = (UINT)((INT)pSi->numBadBytes + nBytes);
+ pSi->numBadBytes += nBytes;
pSi->numBadAccessUnits++;
}
}