aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzer/aac_dec_fuzzer.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2022-01-10 13:44:04 +0200
committerMartin Storsjo <martin@martin.st>2022-01-10 13:55:34 +0200
commit41ae84525e66febd33ea1fa0130a5b46610f4173 (patch)
tree2e7f66da35feda4d6136c3a9e970ebee254d0c2d /fuzzer/aac_dec_fuzzer.cpp
parent573e93e4d0d08127dd3b2297a0ce52221527d90a (diff)
parentdd6d9f9f6c9d095bd159d4f0d8b36a6b7e6057a8 (diff)
downloadfdk-aac-41ae84525e66febd33ea1fa0130a5b46610f4173.tar.gz
fdk-aac-41ae84525e66febd33ea1fa0130a5b46610f4173.tar.bz2
fdk-aac-41ae84525e66febd33ea1fa0130a5b46610f4173.zip
Merge remote-tracking branch 'aosp/master'
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;