Index: media/base/audio_splicer.cc |
diff --git a/media/base/audio_splicer.cc b/media/base/audio_splicer.cc |
index e5dc3122b92909c0dd5952a066ba83a241e413d2..1a56fa42ccee262774b93d24099e89a39888df21 100644 |
--- a/media/base/audio_splicer.cc |
+++ b/media/base/audio_splicer.cc |
@@ -182,6 +182,7 @@ bool AudioStreamSanitizer::AddInput(const scoped_refptr<AudioBuffer>& input) { |
// add it to the output buffer. |
scoped_refptr<AudioBuffer> gap = AudioBuffer::CreateEmptyBuffer( |
input->channel_layout(), |
+ input->channel_count(), |
input->sample_rate(), |
frames_to_fill, |
expected_timestamp, |
@@ -433,6 +434,7 @@ scoped_ptr<AudioBus> AudioSplicer::ExtractCrossfadeFromPreSplice( |
// Allocate output buffer for crossfade. |
*crossfade_buffer = AudioBuffer::CreateBuffer(kSampleFormatPlanarF32, |
preroll->channel_layout(), |
+ preroll->channel_count(), |
preroll->sample_rate(), |
frames_to_crossfade); |
} |