audiovisualwaveform: fixed overwrite silence bug

This commit is contained in:
itsmattkc
2021-09-17 20:52:35 -07:00
parent e08f2f9c34
commit a5e7859e1f
+1 -1
View File
@@ -185,7 +185,7 @@ void AudioVisualWaveform::OverwriteSilence(const rational &start, const rational
our_arr.resize(our_end_index);
}
memset(reinterpret_cast<char*>(our_arr.data()) + our_start_index, 0, our_length_index);
memset(reinterpret_cast<char*>(our_arr.data()) + our_start_index * sizeof(SamplePerChannel), 0, our_length_index * sizeof(SamplePerChannel));
}
}