Fix crash while importing corrupted wav

Line 199 does division with 'bits per sample' but the check for
0 is missing.
This commit is contained in:
Poommetee Ketson
2018-08-20 18:50:20 +07:00
parent c1bd768ca2
commit ec68822cd7
2 changed files with 15 additions and 11 deletions

View File

@ -233,7 +233,7 @@ Ref<AudioStreamSample> AudioEffectRecord::get_recording() const {
w[i * 2 + 1] = rr[i];
}
} else {
ERR_EXPLAIN("format not implemented");
ERR_PRINT("Format not implemented.");
}
Ref<AudioStreamSample> sample;