aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzer
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2021-10-07 23:50:23 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-10-07 23:50:23 +0000
commit0bfa3fc1cd1c7ef3e563aa5506ee16cfb1ed4494 (patch)
treec6a1ddee22e29d9ea00ec2523071a711368189cd /fuzzer
parent6d10f91a77002b6371ebada491f507ef974ca572 (diff)
parent1b5221d9fee482e03342eb1593f580754fa7ab3f (diff)
downloadfdk-aac-0bfa3fc1cd1c7ef3e563aa5506ee16cfb1ed4494.tar.gz
fdk-aac-0bfa3fc1cd1c7ef3e563aa5506ee16cfb1ed4494.tar.bz2
fdk-aac-0bfa3fc1cd1c7ef3e563aa5506ee16cfb1ed4494.zip
Merge "Merge Android 12"
Diffstat (limited to 'fuzzer')
-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;