lwlibav_audio: Fix possible infinite loop.