Corrected access of null pointer in audioproc_f:
The previous CL that added the ability to add and artificial nearend signal had an issue with null pointer access. This is addressed in this CL. BUG=webrtc:6018 Review-Url: https://codereview.webrtc.org/2573033003 Cr-Commit-Position: refs/heads/master@{#15600}
This commit is contained in:
parent
63e6a38745
commit
9e1e6c599d
@ -230,12 +230,11 @@ void AecDumpBasedSimulator::Process() {
|
||||
<< "Only mono files for the artificial nearend are supported, "
|
||||
"reverted to not using the artificial nearend file";
|
||||
|
||||
const int sample_rate_hz = artificial_nearend_file->sample_rate();
|
||||
artificial_nearend_buffer_reader_.reset(
|
||||
new ChannelBufferWavReader(std::move(artificial_nearend_file)));
|
||||
artificial_nearend_buf_.reset(new ChannelBuffer<float>(
|
||||
rtc::CheckedDivExact(artificial_nearend_file->sample_rate(),
|
||||
kChunksPerSecond),
|
||||
1));
|
||||
rtc::CheckedDivExact(sample_rate_hz, kChunksPerSecond), 1));
|
||||
}
|
||||
|
||||
webrtc::audioproc::Event event_msg;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user