Index: webrtc/common_audio/blocker.cc |
diff --git a/webrtc/common_audio/blocker.cc b/webrtc/common_audio/blocker.cc |
index 86dfdf36445ec691e6e9d6ee4d3533d60b8e4dfa..2d84954c24be90ff4e7140b90bf1ee6effb8cbef 100644 |
--- a/webrtc/common_audio/blocker.cc |
+++ b/webrtc/common_audio/blocker.cc |
@@ -211,12 +211,10 @@ void Blocker::ProcessChunk(const float* const* input, |
} |
// Copy output buffer to output |
- CopyFrames(output_buffer_.channels(), |
- 0, |
- chunk_size_, |
- num_output_channels_, |
- output, |
- 0); |
+ if (output != nullptr) { |
peah-webrtc
2016/09/15 15:06:20
Is this change still needed in this CL?
aluebs-webrtc
2016/09/15 23:45:25
No, I just decided to leave it since I thought it
|
+ CopyFrames(output_buffer_.channels(), 0, chunk_size_, num_output_channels_, |
+ output, 0); |
+ } |
// Copy output buffer [chunk_size_, chunk_size_ + initial_delay] |
// to output buffer [0, initial_delay], zero the rest. |