diff options
author | Xin Li <delphij@google.com> | 2021-10-06 22:52:53 +0000 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2021-10-06 22:52:53 +0000 |
commit | 1b5221d9fee482e03342eb1593f580754fa7ab3f (patch) | |
tree | c6a1ddee22e29d9ea00ec2523071a711368189cd /fuzzer/aac_dec_fuzzer.cpp | |
parent | 6d10f91a77002b6371ebada491f507ef974ca572 (diff) | |
parent | a950cd990528f07b93cc5af48145e7cb6bfeb3ca (diff) | |
download | fdk-aac-1b5221d9fee482e03342eb1593f580754fa7ab3f.tar.gz fdk-aac-1b5221d9fee482e03342eb1593f580754fa7ab3f.tar.bz2 fdk-aac-1b5221d9fee482e03342eb1593f580754fa7ab3f.zip |
Merge Android 12
Bug: 202323961
Merged-In: Ia7a8fba7d5108dd4281a47b1aa15966bb6eee947
Change-Id: Iebff00b0ddec06e5d43a6f0109325613701dc05d
Diffstat (limited to 'fuzzer/aac_dec_fuzzer.cpp')
-rw-r--r-- | fuzzer/aac_dec_fuzzer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fuzzer/aac_dec_fuzzer.cpp b/fuzzer/aac_dec_fuzzer.cpp index b5545fc..c970197 100644 --- a/fuzzer/aac_dec_fuzzer.cpp +++ b/fuzzer/aac_dec_fuzzer.cpp @@ -118,7 +118,8 @@ void Codec::decodeFrames(UCHAR *data, UINT size) { INT_PCM outputBuf[kMaxOutBufferSize]; do { mErrorCode = - aacDecoder_DecodeFrame(mAacDecoderHandle, outputBuf, sizeof(outputBuf), 0); + aacDecoder_DecodeFrame(mAacDecoderHandle, outputBuf, + kMaxOutBufferSize /*size in number of INT_PCM, not bytes*/, 0); } while (mErrorCode == AAC_DEC_OK); UINT offset = inputSize - valid; data += offset; |