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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user