diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-05-27 07:25:24 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-05-27 07:25:24 +0000 |
commit | f76ceebf7a0ab901ac6586d764ae47576c17e08c (patch) | |
tree | 41c65cebd836ff3f949f1134512985e4a1288593 | |
parent | c85b838a65360747539d85099d92268dd3994d11 (diff) | |
parent | f19e863cce96cc1e5f4ad7ce512810d5a2843ea6 (diff) | |
download | aac-pie-r2-s1-release.tar.gz |
Snap for 4807121 from f19e863cce96cc1e5f4ad7ce512810d5a2843ea6 to pi-releaseandroid-wear-9.0.0_r9android-wear-9.0.0_r8android-wear-9.0.0_r7android-wear-9.0.0_r6android-wear-9.0.0_r5android-wear-9.0.0_r4android-wear-9.0.0_r34android-wear-9.0.0_r33android-wear-9.0.0_r32android-wear-9.0.0_r31android-wear-9.0.0_r30android-wear-9.0.0_r3android-wear-9.0.0_r29android-wear-9.0.0_r28android-wear-9.0.0_r27android-wear-9.0.0_r26android-wear-9.0.0_r25android-wear-9.0.0_r24android-wear-9.0.0_r23android-wear-9.0.0_r22android-wear-9.0.0_r21android-wear-9.0.0_r20android-wear-9.0.0_r2android-wear-9.0.0_r19android-wear-9.0.0_r18android-wear-9.0.0_r17android-wear-9.0.0_r16android-wear-9.0.0_r15android-wear-9.0.0_r14android-wear-9.0.0_r13android-wear-9.0.0_r12android-wear-9.0.0_r11android-wear-9.0.0_r10android-wear-9.0.0_r1android-vts-9.0_r9android-vts-9.0_r8android-vts-9.0_r7android-vts-9.0_r6android-vts-9.0_r5android-vts-9.0_r4android-vts-9.0_r19android-vts-9.0_r18android-vts-9.0_r17android-vts-9.0_r16android-vts-9.0_r15android-vts-9.0_r14android-vts-9.0_r13android-vts-9.0_r12android-vts-9.0_r11android-vts-9.0_r10android-cts-9.0_r9android-cts-9.0_r8android-cts-9.0_r7android-cts-9.0_r6android-cts-9.0_r5android-cts-9.0_r4android-cts-9.0_r3android-cts-9.0_r20android-cts-9.0_r2android-cts-9.0_r19android-cts-9.0_r18android-cts-9.0_r17android-cts-9.0_r16android-cts-9.0_r15android-cts-9.0_r14android-cts-9.0_r13android-cts-9.0_r12android-cts-9.0_r11android-cts-9.0_r10android-cts-9.0_r1android-9.0.0_r9android-9.0.0_r8android-9.0.0_r7android-9.0.0_r6android-9.0.0_r5android-9.0.0_r3android-9.0.0_r2android-9.0.0_r10android-9.0.0_r1pie-vts-releasepie-release-2pie-releasepie-r2-s1-releasepie-r2-releasepie-cts-release
Change-Id: I8797944fb72a1182a059e75425a8b54b4e8abf51
-rw-r--r-- | libAACdec/include/aacdecoder_lib.h | 18 | ||||
-rw-r--r-- | libAACdec/src/aacdecoder_lib.cpp | 4 |
2 files changed, 12 insertions, 10 deletions
diff --git a/libAACdec/include/aacdecoder_lib.h b/libAACdec/include/aacdecoder_lib.h index e811d04..3a9b910 100644 --- a/libAACdec/include/aacdecoder_lib.h +++ b/libAACdec/include/aacdecoder_lib.h @@ -861,14 +861,16 @@ typedef struct { returns AAC_DEC_TRANSPORT_SYNC_ERROR. It will be < 0 if the estimation failed. */ - UINT numTotalBytes; /*!< This is the number of total bytes that have passed - through the decoder. */ - UINT numBadBytes; /*!< This is the number of total bytes that were considered - with errors from numTotalBytes. */ - UINT numTotalAccessUnits; /*!< This is the number of total access units that - have passed through the decoder. */ - UINT numBadAccessUnits; /*!< This is the number of total access units that - were considered with errors from numTotalBytes. */ + INT64 numTotalBytes; /*!< This is the number of total bytes that have passed + through the decoder. */ + INT64 + numBadBytes; /*!< This is the number of total bytes that were considered + with errors from numTotalBytes. */ + INT64 + numTotalAccessUnits; /*!< This is the number of total access units that + have passed through the decoder. */ + INT64 numBadAccessUnits; /*!< This is the number of total access units that + were considered with errors from numTotalBytes. */ /* Metadata */ SCHAR drcProgRefLev; /*!< DRC program reference level. Defines the reference 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++; } } |