diff --git a/modules/juce_audio_formats/codecs/juce_CoreAudioFormat.cpp b/modules/juce_audio_formats/codecs/juce_CoreAudioFormat.cpp index 039da4afab..330b86b2c0 100644 --- a/modules/juce_audio_formats/codecs/juce_CoreAudioFormat.cpp +++ b/modules/juce_audio_formats/codecs/juce_CoreAudioFormat.cpp @@ -494,6 +494,9 @@ public: if (status != noErr) return false; + if (numFramesToRead == 0) + break; + if ((int) numFramesToRead < numThisTime) { numThisTime = (int) numFramesToRead;