QTAudioReader hangs when actualNumFrames == 0


#1

Hello,

I’ve found if I play an mp3 through to the end of the file, then QTAudioReader will get stuck in readSamples due at least in part to actualNumFrames being 0.

I hacked readSamples to break out when this is the case. I won’t claim it to be a quality fix, but at least it doesn’t hang anymore. :wink:

if ((outFlags & kQTMovieAudioExtractionComplete) != 0 && numSamples > 0 || actualNumFrames == 0)


#2

Ah, good old Quicktime, always full of surprises! Thanks, I’ll make sure it can cope with that situation.