audiovisualwaveform: skip null copy length

This commit is contained in:
itsmattkc
2022-05-21 17:26:54 -07:00
parent c5b6b0c4fc
commit 766a5bf688
+3
View File
@@ -152,6 +152,9 @@ void AudioVisualWaveform::OverwriteSums(const AudioVisualWaveform &sums, const r
int copy_len = their_arr.size() - their_start_index;
if (!length.isNull()) {
copy_len = qMin(copy_len, time_to_samples(length, rate_dbl));
if (copy_len == 0) {
continue;
}
}
// Determine end index of our array