aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzer/aac_dec_fuzzer.cpp
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2021-10-06 22:52:53 +0000
committerXin Li <delphij@google.com>2021-10-06 22:52:53 +0000
commit1b5221d9fee482e03342eb1593f580754fa7ab3f (patch)
treec6a1ddee22e29d9ea00ec2523071a711368189cd /fuzzer/aac_dec_fuzzer.cpp
parent6d10f91a77002b6371ebada491f507ef974ca572 (diff)
parenta950cd990528f07b93cc5af48145e7cb6bfeb3ca (diff)
downloadfdk-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.cpp3
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;