зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1137169 - Uninitialised value uses related to mozilla::dom::WebAudioUtils::SpeexResamplerProcess. r=rjesup.
--HG-- extra : rebase_source : 868317b702597783f155f93e0029acf896f017a6
This commit is contained in:
Родитель
30fc9b669e
Коммит
5c9cd6704d
|
@ -1373,11 +1373,11 @@ NotifyPull(MediaStreamGraph* graph, StreamTime desired_time) {
|
|||
<< ") to return data @ " << played_ticks_
|
||||
<< " (desired " << desired_time << " -> "
|
||||
<< source_->StreamTimeToSeconds(desired_time) << ")");
|
||||
samples_length = (track_rate_/100)*sizeof(uint16_t); // if this is not enough we'll loop and provide more
|
||||
memset(samples_data, '\0', samples_length);
|
||||
samples_length = track_rate_/100; // if this is not enough we'll loop and provide more
|
||||
memset(samples_data, '\0', samples_length * sizeof(uint16_t));
|
||||
}
|
||||
|
||||
MOZ_ASSERT(samples_length < AUDIO_SAMPLE_BUFFER_MAX);
|
||||
MOZ_ASSERT(samples_length * sizeof(uint16_t) < AUDIO_SAMPLE_BUFFER_MAX);
|
||||
|
||||
MOZ_MTLOG(ML_DEBUG, "Audio conduit returned buffer of length "
|
||||
<< samples_length);
|
||||
|
|
Загрузка…
Ссылка в новой задаче