mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix a bug in ma_calculate_frame_count_after_resampling().
This commit is contained in:
+1
-1
@@ -10573,7 +10573,7 @@ MA_API ma_uint64 ma_calculate_frame_count_after_resampling(ma_uint32 sampleRateO
|
||||
ma_uint64 preliminaryInputFrameCountFromFrac;
|
||||
ma_uint64 preliminaryInputFrameCount;
|
||||
|
||||
if (sampleRateIn == 0 || sampleRateOut == 0) {
|
||||
if (sampleRateIn == 0 || sampleRateOut == 0 || frameCountIn == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user