Don't get stuck in an infinite loop when avcodec_decode_audio4 returns an error.