Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: webrtc/test/fuzzers/audio_decoder_isacfix_fuzzer.cc

Issue 2020353003: AudioDecoderIsacT: Require caller to always specify sample rate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/test/fuzzers/audio_decoder_isacfix_fuzzer.cc
diff --git a/webrtc/test/fuzzers/audio_decoder_isacfix_fuzzer.cc b/webrtc/test/fuzzers/audio_decoder_isacfix_fuzzer.cc
index c930aa8fba10a7a4da70b977806e2093d3815ace..25ab3f454ded804a2908204440f3e7dd8d8daa91 100644
--- a/webrtc/test/fuzzers/audio_decoder_isacfix_fuzzer.cc
+++ b/webrtc/test/fuzzers/audio_decoder_isacfix_fuzzer.cc
@@ -13,10 +13,10 @@
namespace webrtc {
void FuzzOneInput(const uint8_t* data, size_t size) {
- AudioDecoderIsacFix dec(nullptr);
static const int kSampleRateHz = 16000;
static const size_t kAllocatedOuputSizeSamples = 16000 / 10; // 100 ms.
int16_t output[kAllocatedOuputSizeSamples];
+ AudioDecoderIsacFix dec(kSampleRateHz);
FuzzAudioDecoder(DecoderFunctionType::kNormalDecode, data, size, &dec,
kSampleRateHz, sizeof(output), output);
}

Powered by Google App Engine
This is Rietveld 408576698