Bug 891254 - Fix the usage of uninitialized samples when the input to a ConvolverNode has a volume; r=roc

--HG--
extra : rebase_source : 2d7e6c393e66096cf410adce0924843ad2eda61b
This commit is contained in:
Ehsan Akhgari 2013-07-18 10:22:47 -04:00
parent 0169e72a77
commit 2e9a3a5936

View File

@ -144,7 +144,7 @@ public:
for (uint32_t i = 0; i < numChannels; ++i) {
const float* src = static_cast<const float*>(aInput.mChannelData[i]);
float* dest = static_cast<float*>(const_cast<void*>(input.mChannelData[i]));
AudioBlockAddChannelWithScale(src, aInput.mVolume, dest);
AudioBlockCopyChannelWithScale(src, aInput.mVolume, dest);
}
}